@descope/nextjs-sdk 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The Descope SDK for NextJS provides convenient access to the Descope for an application written on top of NextJS. You can read more on the [Descope Website](https://descope.com).
4
4
 
5
5
  This SDK uses under the hood the Descope React SDK and Descope Node SDK
6
- Refer to the [Descope React SDK](https://github.com/descope/react-sdk) and [Descope Node SDK](https://github.com/descope/node-sdk) for more details.
6
+ Refer to the [Descope React SDK](https://github.com/descope/descope-js/tree/main/packages/sdks/react-sdk) and [Descope Node SDK](https://github.com/descope/node-sdk) for more details.
7
7
 
8
8
  ## Requirements
9
9
 
@@ -72,7 +72,7 @@ const Page = () => {
72
72
  };
73
73
  ```
74
74
 
75
- Refer to the [Descope React SDK Section](https://github.com/descope/react-sdk?tab=readme-ov-file#2-provide-flow-id) for a list of available props.
75
+ Refer to the [Descope React SDK Section](../react-sdk/README.md) for a list of available props.
76
76
 
77
77
  **Note:** Descope is a client component. if the component that renders it is a server component, you cannot pass `onSuccess`/`onError`/`errorTransformer`/`logger` props because they are not serializable. To redirect the user after the flow is completed, use the `redirectAfterSuccess` and `redirectAfterError` props.
78
78
 
@@ -1,4 +1,3 @@
1
- import React, { ComponentProps } from 'react';
2
1
  import { AuthProvider as AuthProviderComp } from '@descope/react-sdk';
3
- declare const AuthProvider: (props: ComponentProps<typeof AuthProviderComp>) => React.JSX.Element;
2
+ declare const AuthProvider: typeof AuthProviderComp;
4
3
  export default AuthProvider;
@@ -1,3 +1,5 @@
1
+ import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
2
+ import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
1
3
  import React from 'react';
2
4
  type AdditionalProps = {
3
5
  redirectAfterSuccess?: string;
@@ -5,14 +7,19 @@ type AdditionalProps = {
5
7
  };
6
8
  export declare const Descope: React.ComponentType<(({
7
9
  flowId: string;
8
- onSuccess?: (event: CustomEvent<any>) => void;
9
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
10
- onReady?: (event: CustomEvent<any>) => void;
11
- logger?: import("@descope/web-component").ILogger;
10
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
+ onError?: (e: CustomEvent<{
12
+ errorCode: string;
13
+ errorDescription: string;
14
+ errorMessage?: string;
15
+ retryAfter?: string;
16
+ }>) => void;
17
+ onReady?: (e: CustomEvent<{}>) => void;
18
+ logger?: _2.ILogger;
12
19
  tenant?: string;
13
- theme?: import("@descope/web-component").ThemeOptions;
20
+ theme?: _2.ThemeOptions;
14
21
  locale?: string;
15
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
22
+ autoFocus?: _2.AutoFocusOptions;
16
23
  validateOnBlur?: boolean;
17
24
  debug?: boolean;
18
25
  telemetryKey?: string;
@@ -23,16 +30,21 @@ export declare const Descope: React.ComponentType<(({
23
30
  }) => string;
24
31
  form?: Record<string, any>;
25
32
  client?: Record<string, any>;
26
- } & React.RefAttributes<HTMLElement>) | ({
33
+ } & _1.RefAttributes<HTMLElement>) | ({
27
34
  flowId: string;
28
- onSuccess?: (event: CustomEvent<any>) => void;
29
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
30
- onReady?: (event: CustomEvent<any>) => void;
31
- logger?: import("@descope/web-component").ILogger;
35
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
36
+ onError?: (e: CustomEvent<{
37
+ errorCode: string;
38
+ errorDescription: string;
39
+ errorMessage?: string;
40
+ retryAfter?: string;
41
+ }>) => void;
42
+ onReady?: (e: CustomEvent<{}>) => void;
43
+ logger?: _2.ILogger;
32
44
  tenant?: string;
33
- theme?: import("@descope/web-component").ThemeOptions;
45
+ theme?: _2.ThemeOptions;
34
46
  locale?: string;
35
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
47
+ autoFocus?: _2.AutoFocusOptions;
36
48
  validateOnBlur?: boolean;
37
49
  debug?: boolean;
38
50
  telemetryKey?: string;
@@ -43,19 +55,24 @@ export declare const Descope: React.ComponentType<(({
43
55
  }) => string;
44
56
  form?: Record<string, any>;
45
57
  client?: Record<string, any>;
46
- } & React.RefAttributes<HTMLElement> & {
58
+ } & _1.RefAttributes<HTMLElement> & {
47
59
  children?: React.ReactNode;
48
60
  })) & AdditionalProps>;
49
61
  export declare const SignInFlow: React.ComponentType<({
50
62
  form?: Record<string, any>;
51
- onSuccess?: (event: CustomEvent<any>) => void;
52
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
53
- onReady?: (event: CustomEvent<any>) => void;
54
- logger?: import("@descope/web-component").ILogger;
63
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
64
+ onError?: (e: CustomEvent<{
65
+ errorCode: string;
66
+ errorDescription: string;
67
+ errorMessage?: string;
68
+ retryAfter?: string;
69
+ }>) => void;
70
+ onReady?: (e: CustomEvent<{}>) => void;
71
+ logger?: _2.ILogger;
55
72
  tenant?: string;
56
- theme?: import("@descope/web-component").ThemeOptions;
73
+ theme?: _2.ThemeOptions;
57
74
  locale?: string;
58
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
75
+ autoFocus?: _2.AutoFocusOptions;
59
76
  validateOnBlur?: boolean;
60
77
  debug?: boolean;
61
78
  telemetryKey?: string;
@@ -67,14 +84,19 @@ export declare const SignInFlow: React.ComponentType<({
67
84
  client?: Record<string, any>;
68
85
  } | ({
69
86
  form?: Record<string, any>;
70
- onSuccess?: (event: CustomEvent<any>) => void;
71
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
72
- onReady?: (event: CustomEvent<any>) => void;
73
- logger?: import("@descope/web-component").ILogger;
87
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
88
+ onError?: (e: CustomEvent<{
89
+ errorCode: string;
90
+ errorDescription: string;
91
+ errorMessage?: string;
92
+ retryAfter?: string;
93
+ }>) => void;
94
+ onReady?: (e: CustomEvent<{}>) => void;
95
+ logger?: _2.ILogger;
74
96
  tenant?: string;
75
- theme?: import("@descope/web-component").ThemeOptions;
97
+ theme?: _2.ThemeOptions;
76
98
  locale?: string;
77
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
99
+ autoFocus?: _2.AutoFocusOptions;
78
100
  validateOnBlur?: boolean;
79
101
  debug?: boolean;
80
102
  telemetryKey?: string;
@@ -89,14 +111,19 @@ export declare const SignInFlow: React.ComponentType<({
89
111
  })) & AdditionalProps>;
90
112
  export declare const SignUpFlow: React.ComponentType<({
91
113
  form?: Record<string, any>;
92
- onSuccess?: (event: CustomEvent<any>) => void;
93
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
94
- onReady?: (event: CustomEvent<any>) => void;
95
- logger?: import("@descope/web-component").ILogger;
114
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
115
+ onError?: (e: CustomEvent<{
116
+ errorCode: string;
117
+ errorDescription: string;
118
+ errorMessage?: string;
119
+ retryAfter?: string;
120
+ }>) => void;
121
+ onReady?: (e: CustomEvent<{}>) => void;
122
+ logger?: _2.ILogger;
96
123
  tenant?: string;
97
- theme?: import("@descope/web-component").ThemeOptions;
124
+ theme?: _2.ThemeOptions;
98
125
  locale?: string;
99
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
126
+ autoFocus?: _2.AutoFocusOptions;
100
127
  validateOnBlur?: boolean;
101
128
  debug?: boolean;
102
129
  telemetryKey?: string;
@@ -108,14 +135,19 @@ export declare const SignUpFlow: React.ComponentType<({
108
135
  client?: Record<string, any>;
109
136
  } | ({
110
137
  form?: Record<string, any>;
111
- onSuccess?: (event: CustomEvent<any>) => void;
112
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
113
- onReady?: (event: CustomEvent<any>) => void;
114
- logger?: import("@descope/web-component").ILogger;
138
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
139
+ onError?: (e: CustomEvent<{
140
+ errorCode: string;
141
+ errorDescription: string;
142
+ errorMessage?: string;
143
+ retryAfter?: string;
144
+ }>) => void;
145
+ onReady?: (e: CustomEvent<{}>) => void;
146
+ logger?: _2.ILogger;
115
147
  tenant?: string;
116
- theme?: import("@descope/web-component").ThemeOptions;
148
+ theme?: _2.ThemeOptions;
117
149
  locale?: string;
118
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
150
+ autoFocus?: _2.AutoFocusOptions;
119
151
  validateOnBlur?: boolean;
120
152
  debug?: boolean;
121
153
  telemetryKey?: string;
@@ -130,14 +162,19 @@ export declare const SignUpFlow: React.ComponentType<({
130
162
  })) & AdditionalProps>;
131
163
  export declare const SignUpOrInFlow: React.ComponentType<({
132
164
  form?: Record<string, any>;
133
- onSuccess?: (event: CustomEvent<any>) => void;
134
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
135
- onReady?: (event: CustomEvent<any>) => void;
136
- logger?: import("@descope/web-component").ILogger;
165
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
166
+ onError?: (e: CustomEvent<{
167
+ errorCode: string;
168
+ errorDescription: string;
169
+ errorMessage?: string;
170
+ retryAfter?: string;
171
+ }>) => void;
172
+ onReady?: (e: CustomEvent<{}>) => void;
173
+ logger?: _2.ILogger;
137
174
  tenant?: string;
138
- theme?: import("@descope/web-component").ThemeOptions;
175
+ theme?: _2.ThemeOptions;
139
176
  locale?: string;
140
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
177
+ autoFocus?: _2.AutoFocusOptions;
141
178
  validateOnBlur?: boolean;
142
179
  debug?: boolean;
143
180
  telemetryKey?: string;
@@ -149,14 +186,19 @@ export declare const SignUpOrInFlow: React.ComponentType<({
149
186
  client?: Record<string, any>;
150
187
  } | ({
151
188
  form?: Record<string, any>;
152
- onSuccess?: (event: CustomEvent<any>) => void;
153
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
154
- onReady?: (event: CustomEvent<any>) => void;
155
- logger?: import("@descope/web-component").ILogger;
189
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
190
+ onError?: (e: CustomEvent<{
191
+ errorCode: string;
192
+ errorDescription: string;
193
+ errorMessage?: string;
194
+ retryAfter?: string;
195
+ }>) => void;
196
+ onReady?: (e: CustomEvent<{}>) => void;
197
+ logger?: _2.ILogger;
156
198
  tenant?: string;
157
- theme?: import("@descope/web-component").ThemeOptions;
199
+ theme?: _2.ThemeOptions;
158
200
  locale?: string;
159
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
201
+ autoFocus?: _2.AutoFocusOptions;
160
202
  validateOnBlur?: boolean;
161
203
  debug?: boolean;
162
204
  telemetryKey?: string;
@@ -1,3 +1,4 @@
1
+ import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
1
2
  import { ComponentType } from 'react';
2
3
  export declare const UserManagement: ComponentType<{
3
4
  logger?: import("@descope/web-component").ILogger;
@@ -5,28 +6,28 @@ export declare const UserManagement: ComponentType<{
5
6
  widgetId: string;
6
7
  theme?: import("@descope/web-component").ThemeOptions;
7
8
  debug?: boolean;
8
- } & import("react").RefAttributes<HTMLElement>>;
9
+ } & _1.RefAttributes<HTMLElement>>;
9
10
  export declare const RoleManagement: ComponentType<{
10
11
  logger?: import("@descope/web-component").ILogger;
11
12
  tenant: string;
12
13
  widgetId: string;
13
14
  theme?: import("@descope/web-component").ThemeOptions;
14
15
  debug?: boolean;
15
- } & import("react").RefAttributes<HTMLElement>>;
16
+ } & _1.RefAttributes<HTMLElement>>;
16
17
  export declare const AccessKeyManagement: ComponentType<{
17
18
  logger?: import("@descope/web-component").ILogger;
18
19
  tenant: string;
19
20
  widgetId: string;
20
21
  theme?: import("@descope/web-component").ThemeOptions;
21
22
  debug?: boolean;
22
- } & import("react").RefAttributes<HTMLElement>>;
23
+ } & _1.RefAttributes<HTMLElement>>;
23
24
  export declare const AuditManagement: ComponentType<{
24
25
  logger?: import("@descope/web-component").ILogger;
25
26
  tenant: string;
26
27
  widgetId: string;
27
28
  theme?: import("@descope/web-component").ThemeOptions;
28
29
  debug?: boolean;
29
- } & import("react").RefAttributes<HTMLElement>>;
30
+ } & _1.RefAttributes<HTMLElement>>;
30
31
  export declare const UserProfile: ComponentType<Omit<{
31
32
  logger?: import("@descope/web-component").ILogger;
32
33
  tenant: string;
@@ -35,4 +36,4 @@ export declare const UserProfile: ComponentType<Omit<{
35
36
  debug?: boolean;
36
37
  }, "tenant"> & {
37
38
  onLogout?: (e: CustomEvent<any>) => void;
38
- } & import("react").RefAttributes<HTMLElement>>;
39
+ } & _1.RefAttributes<HTMLElement>>;
@@ -1,3 +1,5 @@
1
+ import '@descope/core-js-sdk';
2
+ import '@descope/web-component';
1
3
  export { default as AuthProvider } from './AuthProvider';
2
4
  export * from './DescopeFlows';
3
5
  export * from './DescopeWidgets';
@@ -1,4 +1,3 @@
1
- import React, { ComponentProps } from 'react';
2
1
  import { AuthProvider as AuthProviderComp } from '@descope/react-sdk';
3
- declare const AuthProvider: (props: ComponentProps<typeof AuthProviderComp>) => React.JSX.Element;
2
+ declare const AuthProvider: typeof AuthProviderComp;
4
3
  export default AuthProvider;
@@ -1,3 +1,5 @@
1
+ import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
2
+ import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
1
3
  import React from 'react';
2
4
  type AdditionalProps = {
3
5
  redirectAfterSuccess?: string;
@@ -5,14 +7,19 @@ type AdditionalProps = {
5
7
  };
6
8
  export declare const Descope: React.ComponentType<(({
7
9
  flowId: string;
8
- onSuccess?: (event: CustomEvent<any>) => void;
9
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
10
- onReady?: (event: CustomEvent<any>) => void;
11
- logger?: import("@descope/web-component").ILogger;
10
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
+ onError?: (e: CustomEvent<{
12
+ errorCode: string;
13
+ errorDescription: string;
14
+ errorMessage?: string;
15
+ retryAfter?: string;
16
+ }>) => void;
17
+ onReady?: (e: CustomEvent<{}>) => void;
18
+ logger?: _2.ILogger;
12
19
  tenant?: string;
13
- theme?: import("@descope/web-component").ThemeOptions;
20
+ theme?: _2.ThemeOptions;
14
21
  locale?: string;
15
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
22
+ autoFocus?: _2.AutoFocusOptions;
16
23
  validateOnBlur?: boolean;
17
24
  debug?: boolean;
18
25
  telemetryKey?: string;
@@ -23,16 +30,21 @@ export declare const Descope: React.ComponentType<(({
23
30
  }) => string;
24
31
  form?: Record<string, any>;
25
32
  client?: Record<string, any>;
26
- } & React.RefAttributes<HTMLElement>) | ({
33
+ } & _1.RefAttributes<HTMLElement>) | ({
27
34
  flowId: string;
28
- onSuccess?: (event: CustomEvent<any>) => void;
29
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
30
- onReady?: (event: CustomEvent<any>) => void;
31
- logger?: import("@descope/web-component").ILogger;
35
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
36
+ onError?: (e: CustomEvent<{
37
+ errorCode: string;
38
+ errorDescription: string;
39
+ errorMessage?: string;
40
+ retryAfter?: string;
41
+ }>) => void;
42
+ onReady?: (e: CustomEvent<{}>) => void;
43
+ logger?: _2.ILogger;
32
44
  tenant?: string;
33
- theme?: import("@descope/web-component").ThemeOptions;
45
+ theme?: _2.ThemeOptions;
34
46
  locale?: string;
35
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
47
+ autoFocus?: _2.AutoFocusOptions;
36
48
  validateOnBlur?: boolean;
37
49
  debug?: boolean;
38
50
  telemetryKey?: string;
@@ -43,19 +55,24 @@ export declare const Descope: React.ComponentType<(({
43
55
  }) => string;
44
56
  form?: Record<string, any>;
45
57
  client?: Record<string, any>;
46
- } & React.RefAttributes<HTMLElement> & {
58
+ } & _1.RefAttributes<HTMLElement> & {
47
59
  children?: React.ReactNode;
48
60
  })) & AdditionalProps>;
49
61
  export declare const SignInFlow: React.ComponentType<({
50
62
  form?: Record<string, any>;
51
- onSuccess?: (event: CustomEvent<any>) => void;
52
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
53
- onReady?: (event: CustomEvent<any>) => void;
54
- logger?: import("@descope/web-component").ILogger;
63
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
64
+ onError?: (e: CustomEvent<{
65
+ errorCode: string;
66
+ errorDescription: string;
67
+ errorMessage?: string;
68
+ retryAfter?: string;
69
+ }>) => void;
70
+ onReady?: (e: CustomEvent<{}>) => void;
71
+ logger?: _2.ILogger;
55
72
  tenant?: string;
56
- theme?: import("@descope/web-component").ThemeOptions;
73
+ theme?: _2.ThemeOptions;
57
74
  locale?: string;
58
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
75
+ autoFocus?: _2.AutoFocusOptions;
59
76
  validateOnBlur?: boolean;
60
77
  debug?: boolean;
61
78
  telemetryKey?: string;
@@ -67,14 +84,19 @@ export declare const SignInFlow: React.ComponentType<({
67
84
  client?: Record<string, any>;
68
85
  } | ({
69
86
  form?: Record<string, any>;
70
- onSuccess?: (event: CustomEvent<any>) => void;
71
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
72
- onReady?: (event: CustomEvent<any>) => void;
73
- logger?: import("@descope/web-component").ILogger;
87
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
88
+ onError?: (e: CustomEvent<{
89
+ errorCode: string;
90
+ errorDescription: string;
91
+ errorMessage?: string;
92
+ retryAfter?: string;
93
+ }>) => void;
94
+ onReady?: (e: CustomEvent<{}>) => void;
95
+ logger?: _2.ILogger;
74
96
  tenant?: string;
75
- theme?: import("@descope/web-component").ThemeOptions;
97
+ theme?: _2.ThemeOptions;
76
98
  locale?: string;
77
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
99
+ autoFocus?: _2.AutoFocusOptions;
78
100
  validateOnBlur?: boolean;
79
101
  debug?: boolean;
80
102
  telemetryKey?: string;
@@ -89,14 +111,19 @@ export declare const SignInFlow: React.ComponentType<({
89
111
  })) & AdditionalProps>;
90
112
  export declare const SignUpFlow: React.ComponentType<({
91
113
  form?: Record<string, any>;
92
- onSuccess?: (event: CustomEvent<any>) => void;
93
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
94
- onReady?: (event: CustomEvent<any>) => void;
95
- logger?: import("@descope/web-component").ILogger;
114
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
115
+ onError?: (e: CustomEvent<{
116
+ errorCode: string;
117
+ errorDescription: string;
118
+ errorMessage?: string;
119
+ retryAfter?: string;
120
+ }>) => void;
121
+ onReady?: (e: CustomEvent<{}>) => void;
122
+ logger?: _2.ILogger;
96
123
  tenant?: string;
97
- theme?: import("@descope/web-component").ThemeOptions;
124
+ theme?: _2.ThemeOptions;
98
125
  locale?: string;
99
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
126
+ autoFocus?: _2.AutoFocusOptions;
100
127
  validateOnBlur?: boolean;
101
128
  debug?: boolean;
102
129
  telemetryKey?: string;
@@ -108,14 +135,19 @@ export declare const SignUpFlow: React.ComponentType<({
108
135
  client?: Record<string, any>;
109
136
  } | ({
110
137
  form?: Record<string, any>;
111
- onSuccess?: (event: CustomEvent<any>) => void;
112
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
113
- onReady?: (event: CustomEvent<any>) => void;
114
- logger?: import("@descope/web-component").ILogger;
138
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
139
+ onError?: (e: CustomEvent<{
140
+ errorCode: string;
141
+ errorDescription: string;
142
+ errorMessage?: string;
143
+ retryAfter?: string;
144
+ }>) => void;
145
+ onReady?: (e: CustomEvent<{}>) => void;
146
+ logger?: _2.ILogger;
115
147
  tenant?: string;
116
- theme?: import("@descope/web-component").ThemeOptions;
148
+ theme?: _2.ThemeOptions;
117
149
  locale?: string;
118
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
150
+ autoFocus?: _2.AutoFocusOptions;
119
151
  validateOnBlur?: boolean;
120
152
  debug?: boolean;
121
153
  telemetryKey?: string;
@@ -130,14 +162,19 @@ export declare const SignUpFlow: React.ComponentType<({
130
162
  })) & AdditionalProps>;
131
163
  export declare const SignUpOrInFlow: React.ComponentType<({
132
164
  form?: Record<string, any>;
133
- onSuccess?: (event: CustomEvent<any>) => void;
134
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
135
- onReady?: (event: CustomEvent<any>) => void;
136
- logger?: import("@descope/web-component").ILogger;
165
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
166
+ onError?: (e: CustomEvent<{
167
+ errorCode: string;
168
+ errorDescription: string;
169
+ errorMessage?: string;
170
+ retryAfter?: string;
171
+ }>) => void;
172
+ onReady?: (e: CustomEvent<{}>) => void;
173
+ logger?: _2.ILogger;
137
174
  tenant?: string;
138
- theme?: import("@descope/web-component").ThemeOptions;
175
+ theme?: _2.ThemeOptions;
139
176
  locale?: string;
140
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
177
+ autoFocus?: _2.AutoFocusOptions;
141
178
  validateOnBlur?: boolean;
142
179
  debug?: boolean;
143
180
  telemetryKey?: string;
@@ -149,14 +186,19 @@ export declare const SignUpOrInFlow: React.ComponentType<({
149
186
  client?: Record<string, any>;
150
187
  } | ({
151
188
  form?: Record<string, any>;
152
- onSuccess?: (event: CustomEvent<any>) => void;
153
- onError?: OnErrorEventHandlerNonNull & ((event: CustomEvent<any>) => void);
154
- onReady?: (event: CustomEvent<any>) => void;
155
- logger?: import("@descope/web-component").ILogger;
189
+ onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
190
+ onError?: (e: CustomEvent<{
191
+ errorCode: string;
192
+ errorDescription: string;
193
+ errorMessage?: string;
194
+ retryAfter?: string;
195
+ }>) => void;
196
+ onReady?: (e: CustomEvent<{}>) => void;
197
+ logger?: _2.ILogger;
156
198
  tenant?: string;
157
- theme?: import("@descope/web-component").ThemeOptions;
199
+ theme?: _2.ThemeOptions;
158
200
  locale?: string;
159
- autoFocus?: import("@descope/web-component").AutoFocusOptions;
201
+ autoFocus?: _2.AutoFocusOptions;
160
202
  validateOnBlur?: boolean;
161
203
  debug?: boolean;
162
204
  telemetryKey?: string;
@@ -1,3 +1,4 @@
1
+ import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
1
2
  import { ComponentType } from 'react';
2
3
  export declare const UserManagement: ComponentType<{
3
4
  logger?: import("@descope/web-component").ILogger;
@@ -5,28 +6,28 @@ export declare const UserManagement: ComponentType<{
5
6
  widgetId: string;
6
7
  theme?: import("@descope/web-component").ThemeOptions;
7
8
  debug?: boolean;
8
- } & import("react").RefAttributes<HTMLElement>>;
9
+ } & _1.RefAttributes<HTMLElement>>;
9
10
  export declare const RoleManagement: ComponentType<{
10
11
  logger?: import("@descope/web-component").ILogger;
11
12
  tenant: string;
12
13
  widgetId: string;
13
14
  theme?: import("@descope/web-component").ThemeOptions;
14
15
  debug?: boolean;
15
- } & import("react").RefAttributes<HTMLElement>>;
16
+ } & _1.RefAttributes<HTMLElement>>;
16
17
  export declare const AccessKeyManagement: ComponentType<{
17
18
  logger?: import("@descope/web-component").ILogger;
18
19
  tenant: string;
19
20
  widgetId: string;
20
21
  theme?: import("@descope/web-component").ThemeOptions;
21
22
  debug?: boolean;
22
- } & import("react").RefAttributes<HTMLElement>>;
23
+ } & _1.RefAttributes<HTMLElement>>;
23
24
  export declare const AuditManagement: ComponentType<{
24
25
  logger?: import("@descope/web-component").ILogger;
25
26
  tenant: string;
26
27
  widgetId: string;
27
28
  theme?: import("@descope/web-component").ThemeOptions;
28
29
  debug?: boolean;
29
- } & import("react").RefAttributes<HTMLElement>>;
30
+ } & _1.RefAttributes<HTMLElement>>;
30
31
  export declare const UserProfile: ComponentType<Omit<{
31
32
  logger?: import("@descope/web-component").ILogger;
32
33
  tenant: string;
@@ -35,4 +36,4 @@ export declare const UserProfile: ComponentType<Omit<{
35
36
  debug?: boolean;
36
37
  }, "tenant"> & {
37
38
  onLogout?: (e: CustomEvent<any>) => void;
38
- } & import("react").RefAttributes<HTMLElement>>;
39
+ } & _1.RefAttributes<HTMLElement>>;
@@ -1,3 +1,5 @@
1
+ import '@descope/core-js-sdk';
2
+ import '@descope/web-component';
1
3
  export { default as AuthProvider } from './AuthProvider';
2
4
  export * from './DescopeFlows';
3
5
  export * from './DescopeWidgets';