@descope/react-sdk 2.11.6 → 2.12.1
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 +120 -13
- package/dist/cjs/components/AuthProvider/AuthProvider.js +1 -1
- package/dist/cjs/components/AuthProvider/AuthProvider.js.map +1 -1
- package/dist/cjs/components/AuthProvider/useSdk.js +1 -1
- package/dist/cjs/components/AuthProvider/useSdk.js.map +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/hooks/useSession.js +1 -1
- package/dist/cjs/hooks/useSession.js.map +1 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/components/AuthProvider/AuthProvider.js +1 -1
- package/dist/esm/components/AuthProvider/AuthProvider.js.map +1 -1
- package/dist/esm/components/AuthProvider/useSdk.js +1 -1
- package/dist/esm/components/AuthProvider/useSdk.js.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/hooks/useSession.js +1 -1
- package/dist/esm/hooks/useSession.js.map +1 -1
- package/dist/esm/sdk.js.map +1 -1
- package/dist/index.d.ts +669 -5
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/AuthProvider/AuthProvider.d.ts +2 -1
- package/dist/types/components/AuthProvider/useSdk.d.ts +2 -2
- package/dist/types/sdk.d.ts +2133 -150
- package/dist/types/types.d.ts +1 -0
- package/package.json +11 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC, DOMAttributes } from 'react';
|
|
2
2
|
import * as _descope_web_js_sdk from '@descope/web-js-sdk';
|
|
3
|
-
import { CookieConfig } from '@descope/web-js-sdk';
|
|
3
|
+
import { CookieConfig, OidcConfig } from '@descope/web-js-sdk';
|
|
4
4
|
import * as _descope_web_component from '@descope/web-component';
|
|
5
5
|
import _descope_web_component__default, { ILogger, ThemeOptions, AutoFocusOptions } from '@descope/web-component';
|
|
6
6
|
export { ILogger } from '@descope/web-component';
|
|
@@ -11,6 +11,7 @@ import AuditManagementWidget from '@descope/audit-management-widget';
|
|
|
11
11
|
import UserProfileWidget from '@descope/user-profile-widget';
|
|
12
12
|
import ApplicationsPortalWidget from '@descope/applications-portal-widget';
|
|
13
13
|
import * as _1 from '@descope/core-js-sdk';
|
|
14
|
+
import * as _2 from 'oidc-client-ts';
|
|
14
15
|
|
|
15
16
|
interface IAuthProviderProps {
|
|
16
17
|
projectId: string;
|
|
@@ -18,6 +19,7 @@ interface IAuthProviderProps {
|
|
|
18
19
|
baseStaticUrl?: string;
|
|
19
20
|
persistTokens?: boolean;
|
|
20
21
|
sessionTokenViaCookie?: CookieConfig;
|
|
22
|
+
oidcConfig?: OidcConfig;
|
|
21
23
|
storeLastAuthenticatedUser?: boolean;
|
|
22
24
|
keepLastAuthenticatedUserAfterLogout?: boolean;
|
|
23
25
|
refreshCookieName?: string;
|
|
@@ -28,15 +30,15 @@ declare const AuthProvider: FC<IAuthProviderProps>;
|
|
|
28
30
|
declare const createSdkWrapper: <P extends Omit<{
|
|
29
31
|
projectId: string;
|
|
30
32
|
logger?: {
|
|
31
|
-
|
|
33
|
+
error: {
|
|
32
34
|
(...data: any[]): void;
|
|
33
35
|
(message?: any, ...optionalParams: any[]): void;
|
|
34
36
|
};
|
|
35
|
-
|
|
37
|
+
debug: {
|
|
36
38
|
(...data: any[]): void;
|
|
37
39
|
(message?: any, ...optionalParams: any[]): void;
|
|
38
40
|
};
|
|
39
|
-
|
|
41
|
+
log: {
|
|
40
42
|
(...data: any[]): void;
|
|
41
43
|
(message?: any, ...optionalParams: any[]): void;
|
|
42
44
|
};
|
|
@@ -61,6 +63,8 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
61
63
|
afterRequest?: ((req: _1.RequestConfig, res: Response) => void | Promise<void>) | ((req: _1.RequestConfig, res: Response) => void | Promise<void>)[];
|
|
62
64
|
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
63
65
|
};
|
|
66
|
+
} & {
|
|
67
|
+
oidcConfig?: _descope_web_js_sdk.OidcConfig;
|
|
64
68
|
} & {
|
|
65
69
|
fpKey?: string;
|
|
66
70
|
fpLoad?: boolean;
|
|
@@ -76,6 +80,7 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
76
80
|
sessionTokenViaCookie?: _descope_web_js_sdk.CookieConfig;
|
|
77
81
|
}>(config: P) => ((({
|
|
78
82
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
83
|
+
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
79
84
|
flow: {
|
|
80
85
|
start: (flowId: string, options?: Pick<{
|
|
81
86
|
redirectUrl?: string;
|
|
@@ -193,6 +198,13 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
193
198
|
isSupported(): boolean;
|
|
194
199
|
isLoggedIn(context?: "signin" | "signup" | "use" | "continue"): Promise<boolean>;
|
|
195
200
|
};
|
|
201
|
+
oidc: {
|
|
202
|
+
loginWithRedirect: (arg?: _2.CreateSigninRequestArgs, disableNavigation?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
203
|
+
finishLogin: (url?: string) => Promise<any>;
|
|
204
|
+
finishLoginIfNeed: (url?: string) => Promise<any>;
|
|
205
|
+
refreshToken: (refreshToken: string) => Promise<_2.SigninResponse>;
|
|
206
|
+
logout: (arg?: _2.CreateSignoutRequestArgs, disableNavigation?: boolean) => Promise<any>;
|
|
207
|
+
};
|
|
196
208
|
accessKey: {
|
|
197
209
|
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
198
210
|
};
|
|
@@ -651,7 +663,6 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
651
663
|
}>>;
|
|
652
664
|
};
|
|
653
665
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
654
|
-
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
655
666
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
656
667
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
657
668
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
@@ -714,6 +725,7 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
714
725
|
};
|
|
715
726
|
} | {
|
|
716
727
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
728
|
+
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
717
729
|
flow: {
|
|
718
730
|
start: (flowId: string, options?: Pick<{
|
|
719
731
|
redirectUrl?: string;
|
|
@@ -831,6 +843,13 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
831
843
|
isSupported(): boolean;
|
|
832
844
|
isLoggedIn(context?: "signin" | "signup" | "use" | "continue"): Promise<boolean>;
|
|
833
845
|
};
|
|
846
|
+
oidc: {
|
|
847
|
+
loginWithRedirect: (arg?: _2.CreateSigninRequestArgs, disableNavigation?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
848
|
+
finishLogin: (url?: string) => Promise<any>;
|
|
849
|
+
finishLoginIfNeed: (url?: string) => Promise<any>;
|
|
850
|
+
refreshToken: (refreshToken: string) => Promise<_2.SigninResponse>;
|
|
851
|
+
logout: (arg?: _2.CreateSignoutRequestArgs, disableNavigation?: boolean) => Promise<any>;
|
|
852
|
+
};
|
|
834
853
|
accessKey: {
|
|
835
854
|
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
836
855
|
};
|
|
@@ -1289,7 +1308,651 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
1289
1308
|
}>>;
|
|
1290
1309
|
};
|
|
1291
1310
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1311
|
+
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1312
|
+
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1313
|
+
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1314
|
+
tenants: {
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
customAttributes?: Record<string, any>;
|
|
1318
|
+
}[];
|
|
1319
|
+
}>>;
|
|
1320
|
+
history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
|
|
1321
|
+
isJwtExpired: (token: string) => boolean;
|
|
1322
|
+
getTenants: (token: string) => string[];
|
|
1323
|
+
getJwtPermissions: (token: string, tenant?: string) => string[];
|
|
1324
|
+
getJwtRoles: (token: string, tenant?: string) => string[];
|
|
1325
|
+
getCurrentTenant: (token: string) => string;
|
|
1326
|
+
httpClient: {
|
|
1327
|
+
get: (path: string, config?: {
|
|
1328
|
+
headers?: HeadersInit;
|
|
1329
|
+
queryParams?: {
|
|
1330
|
+
[key: string]: string;
|
|
1331
|
+
};
|
|
1332
|
+
token?: string;
|
|
1333
|
+
}) => Promise<Response>;
|
|
1334
|
+
post: (path: string, body?: any, config?: {
|
|
1335
|
+
headers?: HeadersInit;
|
|
1336
|
+
queryParams?: {
|
|
1337
|
+
[key: string]: string;
|
|
1338
|
+
};
|
|
1339
|
+
token?: string;
|
|
1340
|
+
}) => Promise<Response>;
|
|
1341
|
+
patch: (path: string, body?: any, config?: {
|
|
1342
|
+
headers?: HeadersInit;
|
|
1343
|
+
queryParams?: {
|
|
1344
|
+
[key: string]: string;
|
|
1345
|
+
};
|
|
1346
|
+
token?: string;
|
|
1347
|
+
}) => Promise<Response>;
|
|
1348
|
+
put: (path: string, body?: any, config?: {
|
|
1349
|
+
headers?: HeadersInit;
|
|
1350
|
+
queryParams?: {
|
|
1351
|
+
[key: string]: string;
|
|
1352
|
+
};
|
|
1353
|
+
token?: string;
|
|
1354
|
+
}) => Promise<Response>;
|
|
1355
|
+
delete: (path: string, config?: {
|
|
1356
|
+
headers?: HeadersInit;
|
|
1357
|
+
queryParams?: {
|
|
1358
|
+
[key: string]: string;
|
|
1359
|
+
};
|
|
1360
|
+
token?: string;
|
|
1361
|
+
}) => Promise<Response>;
|
|
1362
|
+
hooks?: {
|
|
1363
|
+
beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
|
|
1364
|
+
afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
|
|
1365
|
+
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
1366
|
+
};
|
|
1367
|
+
buildUrl: (path: string, queryParams?: {
|
|
1368
|
+
[key: string]: string;
|
|
1369
|
+
}) => string;
|
|
1370
|
+
};
|
|
1371
|
+
} | {
|
|
1372
|
+
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1292
1373
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1374
|
+
flow: {
|
|
1375
|
+
start: (flowId: string, options?: Pick<{
|
|
1376
|
+
redirectUrl?: string;
|
|
1377
|
+
location?: string;
|
|
1378
|
+
tenant?: string;
|
|
1379
|
+
deviceInfo?: {
|
|
1380
|
+
webAuthnSupport?: boolean;
|
|
1381
|
+
};
|
|
1382
|
+
lastAuth?: {
|
|
1383
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1384
|
+
oauthProvider?: string;
|
|
1385
|
+
name?: string;
|
|
1386
|
+
loginId?: string;
|
|
1387
|
+
};
|
|
1388
|
+
redirectAuth?: {
|
|
1389
|
+
callbackUrl: string;
|
|
1390
|
+
codeChallenge: string;
|
|
1391
|
+
};
|
|
1392
|
+
oidcIdpStateId?: string;
|
|
1393
|
+
preview?: boolean;
|
|
1394
|
+
samlIdpStateId?: string;
|
|
1395
|
+
samlIdpUsername?: string;
|
|
1396
|
+
ssoAppId?: string;
|
|
1397
|
+
thirdPartyAppId?: string;
|
|
1398
|
+
oidcLoginHint?: string;
|
|
1399
|
+
abTestingKey?: number;
|
|
1400
|
+
startOptionsVersion?: number;
|
|
1401
|
+
client?: Record<string, any>;
|
|
1402
|
+
locale?: string;
|
|
1403
|
+
oidcPrompt?: string;
|
|
1404
|
+
oidcErrorRedirectUri?: string;
|
|
1405
|
+
nativeOptions?: {
|
|
1406
|
+
platform: "ios" | "android";
|
|
1407
|
+
oauthProvider?: string;
|
|
1408
|
+
oauthRedirect?: string;
|
|
1409
|
+
};
|
|
1410
|
+
thirdPartyAppStateId?: string;
|
|
1411
|
+
applicationScopes?: string;
|
|
1412
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes"> & {
|
|
1413
|
+
lastAuth?: Omit<{
|
|
1414
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1415
|
+
oauthProvider?: string;
|
|
1416
|
+
name?: string;
|
|
1417
|
+
loginId?: string;
|
|
1418
|
+
}, "loginId" | "name">;
|
|
1419
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
1420
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1421
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1422
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
1423
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1424
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1425
|
+
};
|
|
1426
|
+
webauthn: {
|
|
1427
|
+
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1428
|
+
start: (loginId: string, origin: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1429
|
+
transactionId: string;
|
|
1430
|
+
options: string;
|
|
1431
|
+
create: boolean;
|
|
1432
|
+
}>>;
|
|
1433
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1434
|
+
};
|
|
1435
|
+
signIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1436
|
+
start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1437
|
+
transactionId: string;
|
|
1438
|
+
options: string;
|
|
1439
|
+
create: boolean;
|
|
1440
|
+
}>>;
|
|
1441
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1442
|
+
};
|
|
1443
|
+
signUpOrIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1444
|
+
start: (loginId: string, origin: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1445
|
+
transactionId: string;
|
|
1446
|
+
options: string;
|
|
1447
|
+
create: boolean;
|
|
1448
|
+
}>>;
|
|
1449
|
+
};
|
|
1450
|
+
update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
1451
|
+
start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1452
|
+
transactionId: string;
|
|
1453
|
+
options: string;
|
|
1454
|
+
create: boolean;
|
|
1455
|
+
}>>;
|
|
1456
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1457
|
+
};
|
|
1458
|
+
helpers: {
|
|
1459
|
+
create: (options: string) => Promise<string>;
|
|
1460
|
+
get: (options: string) => Promise<string>;
|
|
1461
|
+
isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
|
|
1462
|
+
conditional: (options: string, abort: AbortController) => Promise<string>;
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
fedcm: {
|
|
1466
|
+
onetap: {
|
|
1467
|
+
requestExchangeCode(options: {
|
|
1468
|
+
provider?: string;
|
|
1469
|
+
oneTapConfig?: _descope_web_js_sdk.OneTapConfig;
|
|
1470
|
+
loginOptions?: _1.LoginOptions;
|
|
1471
|
+
onSkipped?: (reason?: string) => void;
|
|
1472
|
+
onDismissed?: (reason?: string) => void;
|
|
1473
|
+
onFailed?: (error: Error) => void;
|
|
1474
|
+
onCodeReceived: (code: string) => void;
|
|
1475
|
+
}): void;
|
|
1476
|
+
requestAuthentication(options?: {
|
|
1477
|
+
provider?: string;
|
|
1478
|
+
oneTapConfig?: _descope_web_js_sdk.OneTapConfig;
|
|
1479
|
+
loginOptions?: _1.LoginOptions;
|
|
1480
|
+
onSkipped?: (reason?: string) => void;
|
|
1481
|
+
onDismissed?: (reason?: string) => void;
|
|
1482
|
+
onFailed?: (error: Error) => void;
|
|
1483
|
+
onAuthenticated?: (response: _1.JWTResponse) => void;
|
|
1484
|
+
}): void;
|
|
1485
|
+
};
|
|
1486
|
+
oneTap(provider?: string, oneTapConfig?: _descope_web_js_sdk.OneTapConfig, loginOptions?: _1.LoginOptions, onSkipped?: (reason?: string) => void, onDismissed?: (reason?: string) => void): void;
|
|
1487
|
+
launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1488
|
+
isSupported(): boolean;
|
|
1489
|
+
isLoggedIn(context?: "signin" | "signup" | "use" | "continue"): Promise<boolean>;
|
|
1490
|
+
};
|
|
1491
|
+
oidc: {
|
|
1492
|
+
loginWithRedirect: (arg?: _2.CreateSigninRequestArgs, disableNavigation?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1493
|
+
finishLogin: (url?: string) => Promise<any>;
|
|
1494
|
+
finishLoginIfNeed: (url?: string) => Promise<any>;
|
|
1495
|
+
refreshToken: (refreshToken: string) => Promise<_2.SigninResponse>;
|
|
1496
|
+
logout: (arg?: _2.CreateSignoutRequestArgs, disableNavigation?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1497
|
+
};
|
|
1498
|
+
accessKey: {
|
|
1499
|
+
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
1500
|
+
};
|
|
1501
|
+
otp: {
|
|
1502
|
+
verify: {
|
|
1503
|
+
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1504
|
+
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1505
|
+
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1506
|
+
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1507
|
+
};
|
|
1508
|
+
signIn: {
|
|
1509
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1510
|
+
maskedPhone: string;
|
|
1511
|
+
}>>;
|
|
1512
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1513
|
+
maskedPhone: string;
|
|
1514
|
+
}>>;
|
|
1515
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1516
|
+
maskedPhone: string;
|
|
1517
|
+
}>>;
|
|
1518
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1519
|
+
maskedEmail: string;
|
|
1520
|
+
}>>;
|
|
1521
|
+
};
|
|
1522
|
+
signUp: {
|
|
1523
|
+
sms: (loginId: string, user?: {
|
|
1524
|
+
email?: string;
|
|
1525
|
+
name?: string;
|
|
1526
|
+
givenName?: string;
|
|
1527
|
+
middleName?: string;
|
|
1528
|
+
familyName?: string;
|
|
1529
|
+
phone?: string;
|
|
1530
|
+
}, signUpOptions?: {
|
|
1531
|
+
customClaims?: Record<string, any>;
|
|
1532
|
+
templateId?: string;
|
|
1533
|
+
templateOptions?: {
|
|
1534
|
+
[x: string]: string;
|
|
1535
|
+
};
|
|
1536
|
+
}) => Promise<_1.SdkResponse<{
|
|
1537
|
+
maskedPhone: string;
|
|
1538
|
+
}>>;
|
|
1539
|
+
voice: (loginId: string, user?: {
|
|
1540
|
+
email?: string;
|
|
1541
|
+
name?: string;
|
|
1542
|
+
givenName?: string;
|
|
1543
|
+
middleName?: string;
|
|
1544
|
+
familyName?: string;
|
|
1545
|
+
phone?: string;
|
|
1546
|
+
}, signUpOptions?: {
|
|
1547
|
+
customClaims?: Record<string, any>;
|
|
1548
|
+
templateId?: string;
|
|
1549
|
+
templateOptions?: {
|
|
1550
|
+
[x: string]: string;
|
|
1551
|
+
};
|
|
1552
|
+
}) => Promise<_1.SdkResponse<{
|
|
1553
|
+
maskedPhone: string;
|
|
1554
|
+
}>>;
|
|
1555
|
+
whatsapp: (loginId: string, user?: {
|
|
1556
|
+
email?: string;
|
|
1557
|
+
name?: string;
|
|
1558
|
+
givenName?: string;
|
|
1559
|
+
middleName?: string;
|
|
1560
|
+
familyName?: string;
|
|
1561
|
+
phone?: string;
|
|
1562
|
+
}, signUpOptions?: {
|
|
1563
|
+
customClaims?: Record<string, any>;
|
|
1564
|
+
templateId?: string;
|
|
1565
|
+
templateOptions?: {
|
|
1566
|
+
[x: string]: string;
|
|
1567
|
+
};
|
|
1568
|
+
}) => Promise<_1.SdkResponse<{
|
|
1569
|
+
maskedPhone: string;
|
|
1570
|
+
}>>;
|
|
1571
|
+
email: (loginId: string, user?: {
|
|
1572
|
+
email?: string;
|
|
1573
|
+
name?: string;
|
|
1574
|
+
givenName?: string;
|
|
1575
|
+
middleName?: string;
|
|
1576
|
+
familyName?: string;
|
|
1577
|
+
phone?: string;
|
|
1578
|
+
}, signUpOptions?: {
|
|
1579
|
+
customClaims?: Record<string, any>;
|
|
1580
|
+
templateId?: string;
|
|
1581
|
+
templateOptions?: {
|
|
1582
|
+
[x: string]: string;
|
|
1583
|
+
};
|
|
1584
|
+
}) => Promise<_1.SdkResponse<{
|
|
1585
|
+
maskedEmail: string;
|
|
1586
|
+
}>>;
|
|
1587
|
+
};
|
|
1588
|
+
signUpOrIn: {
|
|
1589
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1590
|
+
maskedPhone: string;
|
|
1591
|
+
}>>;
|
|
1592
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1593
|
+
maskedPhone: string;
|
|
1594
|
+
}>>;
|
|
1595
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1596
|
+
maskedPhone: string;
|
|
1597
|
+
}>>;
|
|
1598
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1599
|
+
maskedEmail: string;
|
|
1600
|
+
}>>;
|
|
1601
|
+
};
|
|
1602
|
+
update: {
|
|
1603
|
+
email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
1604
|
+
addToLoginIDs?: T_6;
|
|
1605
|
+
onMergeUseExisting?: T_6 extends true ? boolean : never;
|
|
1606
|
+
templateOptions?: {
|
|
1607
|
+
[x: string]: string;
|
|
1608
|
+
};
|
|
1609
|
+
}) => Promise<_1.SdkResponse<{
|
|
1610
|
+
maskedEmail: string;
|
|
1611
|
+
}>>;
|
|
1612
|
+
phone: {
|
|
1613
|
+
sms: <T_1_6 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1614
|
+
addToLoginIDs?: T_1_6;
|
|
1615
|
+
onMergeUseExisting?: T_1_6 extends true ? boolean : never;
|
|
1616
|
+
templateOptions?: {
|
|
1617
|
+
[x: string]: string;
|
|
1618
|
+
};
|
|
1619
|
+
}) => Promise<_1.SdkResponse<{
|
|
1620
|
+
maskedPhone: string;
|
|
1621
|
+
}>>;
|
|
1622
|
+
voice: <T_1_7 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1623
|
+
addToLoginIDs?: T_1_7;
|
|
1624
|
+
onMergeUseExisting?: T_1_7 extends true ? boolean : never;
|
|
1625
|
+
templateOptions?: {
|
|
1626
|
+
[x: string]: string;
|
|
1627
|
+
};
|
|
1628
|
+
}) => Promise<_1.SdkResponse<{
|
|
1629
|
+
maskedPhone: string;
|
|
1630
|
+
}>>;
|
|
1631
|
+
whatsapp: <T_1_8 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1632
|
+
addToLoginIDs?: T_1_8;
|
|
1633
|
+
onMergeUseExisting?: T_1_8 extends true ? boolean : never;
|
|
1634
|
+
templateOptions?: {
|
|
1635
|
+
[x: string]: string;
|
|
1636
|
+
};
|
|
1637
|
+
}) => Promise<_1.SdkResponse<{
|
|
1638
|
+
maskedPhone: string;
|
|
1639
|
+
}>>;
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
magicLink: {
|
|
1644
|
+
verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1645
|
+
signIn: {
|
|
1646
|
+
sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1647
|
+
maskedPhone: string;
|
|
1648
|
+
}>>;
|
|
1649
|
+
voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1650
|
+
maskedPhone: string;
|
|
1651
|
+
}>>;
|
|
1652
|
+
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1653
|
+
maskedPhone: string;
|
|
1654
|
+
}>>;
|
|
1655
|
+
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1656
|
+
maskedEmail: string;
|
|
1657
|
+
}>>;
|
|
1658
|
+
};
|
|
1659
|
+
signUp: {
|
|
1660
|
+
sms: (loginId: string, URI: string, user?: {
|
|
1661
|
+
email?: string;
|
|
1662
|
+
name?: string;
|
|
1663
|
+
givenName?: string;
|
|
1664
|
+
middleName?: string;
|
|
1665
|
+
familyName?: string;
|
|
1666
|
+
phone?: string;
|
|
1667
|
+
}, signUpOptions?: {
|
|
1668
|
+
customClaims?: Record<string, any>;
|
|
1669
|
+
templateId?: string;
|
|
1670
|
+
templateOptions?: {
|
|
1671
|
+
[x: string]: string;
|
|
1672
|
+
};
|
|
1673
|
+
}) => Promise<_1.SdkResponse<{
|
|
1674
|
+
maskedPhone: string;
|
|
1675
|
+
}>>;
|
|
1676
|
+
voice: (loginId: string, URI: string, user?: {
|
|
1677
|
+
email?: string;
|
|
1678
|
+
name?: string;
|
|
1679
|
+
givenName?: string;
|
|
1680
|
+
middleName?: string;
|
|
1681
|
+
familyName?: string;
|
|
1682
|
+
phone?: string;
|
|
1683
|
+
}, signUpOptions?: {
|
|
1684
|
+
customClaims?: Record<string, any>;
|
|
1685
|
+
templateId?: string;
|
|
1686
|
+
templateOptions?: {
|
|
1687
|
+
[x: string]: string;
|
|
1688
|
+
};
|
|
1689
|
+
}) => Promise<_1.SdkResponse<{
|
|
1690
|
+
maskedPhone: string;
|
|
1691
|
+
}>>;
|
|
1692
|
+
whatsapp: (loginId: string, URI: string, user?: {
|
|
1693
|
+
email?: string;
|
|
1694
|
+
name?: string;
|
|
1695
|
+
givenName?: string;
|
|
1696
|
+
middleName?: string;
|
|
1697
|
+
familyName?: string;
|
|
1698
|
+
phone?: string;
|
|
1699
|
+
}, signUpOptions?: {
|
|
1700
|
+
customClaims?: Record<string, any>;
|
|
1701
|
+
templateId?: string;
|
|
1702
|
+
templateOptions?: {
|
|
1703
|
+
[x: string]: string;
|
|
1704
|
+
};
|
|
1705
|
+
}) => Promise<_1.SdkResponse<{
|
|
1706
|
+
maskedPhone: string;
|
|
1707
|
+
}>>;
|
|
1708
|
+
email: (loginId: string, URI: string, user?: {
|
|
1709
|
+
email?: string;
|
|
1710
|
+
name?: string;
|
|
1711
|
+
givenName?: string;
|
|
1712
|
+
middleName?: string;
|
|
1713
|
+
familyName?: string;
|
|
1714
|
+
phone?: string;
|
|
1715
|
+
}, signUpOptions?: {
|
|
1716
|
+
customClaims?: Record<string, any>;
|
|
1717
|
+
templateId?: string;
|
|
1718
|
+
templateOptions?: {
|
|
1719
|
+
[x: string]: string;
|
|
1720
|
+
};
|
|
1721
|
+
}) => Promise<_1.SdkResponse<{
|
|
1722
|
+
maskedEmail: string;
|
|
1723
|
+
}>>;
|
|
1724
|
+
};
|
|
1725
|
+
signUpOrIn: {
|
|
1726
|
+
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
1727
|
+
customClaims?: Record<string, any>;
|
|
1728
|
+
templateId?: string;
|
|
1729
|
+
templateOptions?: {
|
|
1730
|
+
[x: string]: string;
|
|
1731
|
+
};
|
|
1732
|
+
}) => Promise<_1.SdkResponse<{
|
|
1733
|
+
maskedPhone: string;
|
|
1734
|
+
}>>;
|
|
1735
|
+
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
1736
|
+
customClaims?: Record<string, any>;
|
|
1737
|
+
templateId?: string;
|
|
1738
|
+
templateOptions?: {
|
|
1739
|
+
[x: string]: string;
|
|
1740
|
+
};
|
|
1741
|
+
}) => Promise<_1.SdkResponse<{
|
|
1742
|
+
maskedPhone: string;
|
|
1743
|
+
}>>;
|
|
1744
|
+
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
1745
|
+
customClaims?: Record<string, any>;
|
|
1746
|
+
templateId?: string;
|
|
1747
|
+
templateOptions?: {
|
|
1748
|
+
[x: string]: string;
|
|
1749
|
+
};
|
|
1750
|
+
}) => Promise<_1.SdkResponse<{
|
|
1751
|
+
maskedPhone: string;
|
|
1752
|
+
}>>;
|
|
1753
|
+
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1754
|
+
customClaims?: Record<string, any>;
|
|
1755
|
+
templateId?: string;
|
|
1756
|
+
templateOptions?: {
|
|
1757
|
+
[x: string]: string;
|
|
1758
|
+
};
|
|
1759
|
+
}) => Promise<_1.SdkResponse<{
|
|
1760
|
+
maskedEmail: string;
|
|
1761
|
+
}>>;
|
|
1762
|
+
};
|
|
1763
|
+
update: {
|
|
1764
|
+
email: <T_2_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1765
|
+
addToLoginIDs?: T_2_2;
|
|
1766
|
+
onMergeUseExisting?: T_2_2 extends true ? boolean : never;
|
|
1767
|
+
templateOptions?: {
|
|
1768
|
+
[x: string]: string;
|
|
1769
|
+
};
|
|
1770
|
+
}) => Promise<_1.SdkResponse<{
|
|
1771
|
+
maskedEmail: string;
|
|
1772
|
+
}>>;
|
|
1773
|
+
phone: {
|
|
1774
|
+
sms: <T_3_6 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1775
|
+
addToLoginIDs?: T_3_6;
|
|
1776
|
+
onMergeUseExisting?: T_3_6 extends true ? boolean : never;
|
|
1777
|
+
templateOptions?: {
|
|
1778
|
+
[x: string]: string;
|
|
1779
|
+
};
|
|
1780
|
+
}) => Promise<_1.SdkResponse<{
|
|
1781
|
+
maskedPhone: string;
|
|
1782
|
+
}>>;
|
|
1783
|
+
voice: <T_3_7 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1784
|
+
addToLoginIDs?: T_3_7;
|
|
1785
|
+
onMergeUseExisting?: T_3_7 extends true ? boolean : never;
|
|
1786
|
+
templateOptions?: {
|
|
1787
|
+
[x: string]: string;
|
|
1788
|
+
};
|
|
1789
|
+
}) => Promise<_1.SdkResponse<{
|
|
1790
|
+
maskedPhone: string;
|
|
1791
|
+
}>>;
|
|
1792
|
+
whatsapp: <T_3_8 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1793
|
+
addToLoginIDs?: T_3_8;
|
|
1794
|
+
onMergeUseExisting?: T_3_8 extends true ? boolean : never;
|
|
1795
|
+
templateOptions?: {
|
|
1796
|
+
[x: string]: string;
|
|
1797
|
+
};
|
|
1798
|
+
}) => Promise<_1.SdkResponse<{
|
|
1799
|
+
maskedPhone: string;
|
|
1800
|
+
}>>;
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
};
|
|
1804
|
+
enchantedLink: {
|
|
1805
|
+
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
1806
|
+
signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1807
|
+
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
1808
|
+
customClaims?: Record<string, any>;
|
|
1809
|
+
templateId?: string;
|
|
1810
|
+
templateOptions?: {
|
|
1811
|
+
[x: string]: string;
|
|
1812
|
+
};
|
|
1813
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1814
|
+
signUp: (loginId: string, URI?: string, user?: {
|
|
1815
|
+
email?: string;
|
|
1816
|
+
name?: string;
|
|
1817
|
+
givenName?: string;
|
|
1818
|
+
middleName?: string;
|
|
1819
|
+
familyName?: string;
|
|
1820
|
+
phone?: string;
|
|
1821
|
+
}, signUpOptions?: {
|
|
1822
|
+
customClaims?: Record<string, any>;
|
|
1823
|
+
templateId?: string;
|
|
1824
|
+
templateOptions?: {
|
|
1825
|
+
[x: string]: string;
|
|
1826
|
+
};
|
|
1827
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1828
|
+
waitForSession: (pendingRef: string, config?: {
|
|
1829
|
+
pollingIntervalMs: number;
|
|
1830
|
+
timeoutMs: number;
|
|
1831
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1832
|
+
update: {
|
|
1833
|
+
email: <T_4_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1834
|
+
addToLoginIDs?: T_4_2;
|
|
1835
|
+
onMergeUseExisting?: T_4_2 extends true ? boolean : never;
|
|
1836
|
+
templateOptions?: {
|
|
1837
|
+
[x: string]: string;
|
|
1838
|
+
};
|
|
1839
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
oauth: {
|
|
1843
|
+
start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
1844
|
+
google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1845
|
+
facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1846
|
+
github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1847
|
+
microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1848
|
+
gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1849
|
+
apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1850
|
+
discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1851
|
+
linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1852
|
+
slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1853
|
+
};
|
|
1854
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1855
|
+
startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1856
|
+
finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1857
|
+
getOneTapClientId: (provider: string) => Promise<_1.SdkResponse<{
|
|
1858
|
+
clientId: string;
|
|
1859
|
+
}>>;
|
|
1860
|
+
verifyOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<{
|
|
1861
|
+
code: string;
|
|
1862
|
+
}>>;
|
|
1863
|
+
exchangeOneTapIDToken: (provider: string, idToken: string, nonce: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1864
|
+
};
|
|
1865
|
+
saml: {
|
|
1866
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1867
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1868
|
+
};
|
|
1869
|
+
totp: {
|
|
1870
|
+
signUp: (loginId: string, user?: {
|
|
1871
|
+
email?: string;
|
|
1872
|
+
name?: string;
|
|
1873
|
+
givenName?: string;
|
|
1874
|
+
middleName?: string;
|
|
1875
|
+
familyName?: string;
|
|
1876
|
+
phone?: string;
|
|
1877
|
+
}) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1878
|
+
verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1879
|
+
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1880
|
+
};
|
|
1881
|
+
notp: {
|
|
1882
|
+
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
1883
|
+
customClaims?: Record<string, any>;
|
|
1884
|
+
templateId?: string;
|
|
1885
|
+
templateOptions?: {
|
|
1886
|
+
[x: string]: string;
|
|
1887
|
+
};
|
|
1888
|
+
}) => Promise<_1.SdkResponse<{
|
|
1889
|
+
pendingRef: string;
|
|
1890
|
+
redirectUrl: string;
|
|
1891
|
+
image: string;
|
|
1892
|
+
}>>;
|
|
1893
|
+
signUp: (loginId?: string, user?: {
|
|
1894
|
+
email?: string;
|
|
1895
|
+
name?: string;
|
|
1896
|
+
givenName?: string;
|
|
1897
|
+
middleName?: string;
|
|
1898
|
+
familyName?: string;
|
|
1899
|
+
phone?: string;
|
|
1900
|
+
}, signUpOptions?: {
|
|
1901
|
+
customClaims?: Record<string, any>;
|
|
1902
|
+
templateId?: string;
|
|
1903
|
+
templateOptions?: {
|
|
1904
|
+
[x: string]: string;
|
|
1905
|
+
};
|
|
1906
|
+
}) => Promise<_1.SdkResponse<{
|
|
1907
|
+
pendingRef: string;
|
|
1908
|
+
redirectUrl: string;
|
|
1909
|
+
image: string;
|
|
1910
|
+
}>>;
|
|
1911
|
+
signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1912
|
+
pendingRef: string;
|
|
1913
|
+
redirectUrl: string;
|
|
1914
|
+
image: string;
|
|
1915
|
+
}>>;
|
|
1916
|
+
waitForSession: (pendingRef: string, config?: {
|
|
1917
|
+
pollingIntervalMs: number;
|
|
1918
|
+
timeoutMs: number;
|
|
1919
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1920
|
+
};
|
|
1921
|
+
password: {
|
|
1922
|
+
signUp: (loginId: string, password: string, user?: {
|
|
1923
|
+
email?: string;
|
|
1924
|
+
name?: string;
|
|
1925
|
+
givenName?: string;
|
|
1926
|
+
middleName?: string;
|
|
1927
|
+
familyName?: string;
|
|
1928
|
+
phone?: string;
|
|
1929
|
+
}, signUpOptions?: {
|
|
1930
|
+
customClaims?: Record<string, any>;
|
|
1931
|
+
templateId?: string;
|
|
1932
|
+
templateOptions?: {
|
|
1933
|
+
[x: string]: string;
|
|
1934
|
+
};
|
|
1935
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1936
|
+
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1937
|
+
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
1938
|
+
[x: string]: string;
|
|
1939
|
+
}) => Promise<_1.SdkResponse<{
|
|
1940
|
+
resetMethod: string;
|
|
1941
|
+
pendingRef?: string;
|
|
1942
|
+
linkId?: string;
|
|
1943
|
+
maskedEmail: string;
|
|
1944
|
+
}>>;
|
|
1945
|
+
update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1946
|
+
replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1947
|
+
policy: () => Promise<_1.SdkResponse<{
|
|
1948
|
+
minLength: number;
|
|
1949
|
+
lowercase: boolean;
|
|
1950
|
+
uppercase: boolean;
|
|
1951
|
+
number: boolean;
|
|
1952
|
+
nonAlphanumeric: boolean;
|
|
1953
|
+
}>>;
|
|
1954
|
+
};
|
|
1955
|
+
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1293
1956
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1294
1957
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1295
1958
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
@@ -1360,6 +2023,7 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
1360
2023
|
}) & {
|
|
1361
2024
|
getRefreshToken: () => string;
|
|
1362
2025
|
getSessionToken: () => string;
|
|
2026
|
+
getIdToken: () => string;
|
|
1363
2027
|
};
|
|
1364
2028
|
declare const getSessionToken: () => string;
|
|
1365
2029
|
declare const getRefreshToken: () => string;
|