@descope/web-js-sdk 1.37.1 → 1.38.0
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/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +145 -49
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as oidc_client_ts from 'oidc-client-ts';
|
|
2
2
|
import * as _descope_core_js_sdk from '@descope/core-js-sdk';
|
|
3
|
-
export { UserResponse } from '@descope/core-js-sdk';
|
|
3
|
+
export { JWTResponse, UserResponse } from '@descope/core-js-sdk';
|
|
4
4
|
|
|
5
5
|
type OidcConfigOptions = {
|
|
6
6
|
applicationId?: string;
|
|
@@ -598,13 +598,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
598
598
|
};
|
|
599
599
|
enchantedLink: {
|
|
600
600
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
601
|
-
signIn: (loginId: string, URI?: string,
|
|
602
|
-
|
|
601
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
602
|
+
providerId?: string;
|
|
603
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
604
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
603
605
|
customClaims?: Record<string, any>;
|
|
604
606
|
templateId?: string;
|
|
605
607
|
templateOptions?: {
|
|
606
608
|
[x: string]: string;
|
|
607
609
|
};
|
|
610
|
+
} & {
|
|
611
|
+
providerId?: string;
|
|
608
612
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
609
613
|
signUp: (loginId: string, URI?: string, user?: {
|
|
610
614
|
email?: string;
|
|
@@ -613,12 +617,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
613
617
|
middleName?: string;
|
|
614
618
|
familyName?: string;
|
|
615
619
|
phone?: string;
|
|
616
|
-
},
|
|
620
|
+
}, args_3?: {
|
|
617
621
|
customClaims?: Record<string, any>;
|
|
618
622
|
templateId?: string;
|
|
619
623
|
templateOptions?: {
|
|
620
624
|
[x: string]: string;
|
|
621
625
|
};
|
|
626
|
+
} & {
|
|
627
|
+
providerId?: string;
|
|
622
628
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
623
629
|
waitForSession: (pendingRef: string, config?: {
|
|
624
630
|
pollingIntervalMs: number;
|
|
@@ -684,12 +690,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
684
690
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
685
691
|
};
|
|
686
692
|
notp: {
|
|
687
|
-
signUpOrIn: (loginId?: string,
|
|
693
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
688
694
|
customClaims?: Record<string, any>;
|
|
689
695
|
templateId?: string;
|
|
690
696
|
templateOptions?: {
|
|
691
697
|
[x: string]: string;
|
|
692
698
|
};
|
|
699
|
+
} & {
|
|
700
|
+
providerId?: string;
|
|
693
701
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
694
702
|
pendingRef: string;
|
|
695
703
|
redirectUrl: string;
|
|
@@ -702,18 +710,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
702
710
|
middleName?: string;
|
|
703
711
|
familyName?: string;
|
|
704
712
|
phone?: string;
|
|
705
|
-
},
|
|
713
|
+
}, args_2?: {
|
|
706
714
|
customClaims?: Record<string, any>;
|
|
707
715
|
templateId?: string;
|
|
708
716
|
templateOptions?: {
|
|
709
717
|
[x: string]: string;
|
|
710
718
|
};
|
|
719
|
+
} & {
|
|
720
|
+
providerId?: string;
|
|
711
721
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
712
722
|
pendingRef: string;
|
|
713
723
|
redirectUrl: string;
|
|
714
724
|
image: string;
|
|
715
725
|
}>>;
|
|
716
|
-
signIn: (loginId?: string,
|
|
726
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
727
|
+
providerId?: string;
|
|
728
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
717
729
|
pendingRef: string;
|
|
718
730
|
redirectUrl: string;
|
|
719
731
|
image: string;
|
|
@@ -731,14 +743,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
731
743
|
middleName?: string;
|
|
732
744
|
familyName?: string;
|
|
733
745
|
phone?: string;
|
|
734
|
-
},
|
|
746
|
+
}, args_3?: {
|
|
735
747
|
customClaims?: Record<string, any>;
|
|
736
748
|
templateId?: string;
|
|
737
749
|
templateOptions?: {
|
|
738
750
|
[x: string]: string;
|
|
739
751
|
};
|
|
752
|
+
} & {
|
|
753
|
+
providerId?: string;
|
|
754
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
755
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
756
|
+
providerId?: string;
|
|
740
757
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
741
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
742
758
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
743
759
|
[x: string]: string;
|
|
744
760
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
@@ -1228,13 +1244,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1228
1244
|
};
|
|
1229
1245
|
enchantedLink: {
|
|
1230
1246
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
1231
|
-
signIn: (loginId: string, URI?: string,
|
|
1232
|
-
|
|
1247
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
1248
|
+
providerId?: string;
|
|
1249
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1250
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
1233
1251
|
customClaims?: Record<string, any>;
|
|
1234
1252
|
templateId?: string;
|
|
1235
1253
|
templateOptions?: {
|
|
1236
1254
|
[x: string]: string;
|
|
1237
1255
|
};
|
|
1256
|
+
} & {
|
|
1257
|
+
providerId?: string;
|
|
1238
1258
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1239
1259
|
signUp: (loginId: string, URI?: string, user?: {
|
|
1240
1260
|
email?: string;
|
|
@@ -1243,12 +1263,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1243
1263
|
middleName?: string;
|
|
1244
1264
|
familyName?: string;
|
|
1245
1265
|
phone?: string;
|
|
1246
|
-
},
|
|
1266
|
+
}, args_3?: {
|
|
1247
1267
|
customClaims?: Record<string, any>;
|
|
1248
1268
|
templateId?: string;
|
|
1249
1269
|
templateOptions?: {
|
|
1250
1270
|
[x: string]: string;
|
|
1251
1271
|
};
|
|
1272
|
+
} & {
|
|
1273
|
+
providerId?: string;
|
|
1252
1274
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1253
1275
|
waitForSession: (pendingRef: string, config?: {
|
|
1254
1276
|
pollingIntervalMs: number;
|
|
@@ -1314,12 +1336,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1314
1336
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
1315
1337
|
};
|
|
1316
1338
|
notp: {
|
|
1317
|
-
signUpOrIn: (loginId?: string,
|
|
1339
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
1318
1340
|
customClaims?: Record<string, any>;
|
|
1319
1341
|
templateId?: string;
|
|
1320
1342
|
templateOptions?: {
|
|
1321
1343
|
[x: string]: string;
|
|
1322
1344
|
};
|
|
1345
|
+
} & {
|
|
1346
|
+
providerId?: string;
|
|
1323
1347
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1324
1348
|
pendingRef: string;
|
|
1325
1349
|
redirectUrl: string;
|
|
@@ -1332,18 +1356,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1332
1356
|
middleName?: string;
|
|
1333
1357
|
familyName?: string;
|
|
1334
1358
|
phone?: string;
|
|
1335
|
-
},
|
|
1359
|
+
}, args_2?: {
|
|
1336
1360
|
customClaims?: Record<string, any>;
|
|
1337
1361
|
templateId?: string;
|
|
1338
1362
|
templateOptions?: {
|
|
1339
1363
|
[x: string]: string;
|
|
1340
1364
|
};
|
|
1365
|
+
} & {
|
|
1366
|
+
providerId?: string;
|
|
1341
1367
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1342
1368
|
pendingRef: string;
|
|
1343
1369
|
redirectUrl: string;
|
|
1344
1370
|
image: string;
|
|
1345
1371
|
}>>;
|
|
1346
|
-
signIn: (loginId?: string,
|
|
1372
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
1373
|
+
providerId?: string;
|
|
1374
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1347
1375
|
pendingRef: string;
|
|
1348
1376
|
redirectUrl: string;
|
|
1349
1377
|
image: string;
|
|
@@ -1361,14 +1389,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1361
1389
|
middleName?: string;
|
|
1362
1390
|
familyName?: string;
|
|
1363
1391
|
phone?: string;
|
|
1364
|
-
},
|
|
1392
|
+
}, args_3?: {
|
|
1365
1393
|
customClaims?: Record<string, any>;
|
|
1366
1394
|
templateId?: string;
|
|
1367
1395
|
templateOptions?: {
|
|
1368
1396
|
[x: string]: string;
|
|
1369
1397
|
};
|
|
1398
|
+
} & {
|
|
1399
|
+
providerId?: string;
|
|
1400
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
1401
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
1402
|
+
providerId?: string;
|
|
1370
1403
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
1371
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
1372
1404
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
1373
1405
|
[x: string]: string;
|
|
1374
1406
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
@@ -1858,13 +1890,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1858
1890
|
};
|
|
1859
1891
|
enchantedLink: {
|
|
1860
1892
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
1861
|
-
signIn: (loginId: string, URI?: string,
|
|
1862
|
-
|
|
1893
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
1894
|
+
providerId?: string;
|
|
1895
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1896
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
1863
1897
|
customClaims?: Record<string, any>;
|
|
1864
1898
|
templateId?: string;
|
|
1865
1899
|
templateOptions?: {
|
|
1866
1900
|
[x: string]: string;
|
|
1867
1901
|
};
|
|
1902
|
+
} & {
|
|
1903
|
+
providerId?: string;
|
|
1868
1904
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1869
1905
|
signUp: (loginId: string, URI?: string, user?: {
|
|
1870
1906
|
email?: string;
|
|
@@ -1873,12 +1909,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1873
1909
|
middleName?: string;
|
|
1874
1910
|
familyName?: string;
|
|
1875
1911
|
phone?: string;
|
|
1876
|
-
},
|
|
1912
|
+
}, args_3?: {
|
|
1877
1913
|
customClaims?: Record<string, any>;
|
|
1878
1914
|
templateId?: string;
|
|
1879
1915
|
templateOptions?: {
|
|
1880
1916
|
[x: string]: string;
|
|
1881
1917
|
};
|
|
1918
|
+
} & {
|
|
1919
|
+
providerId?: string;
|
|
1882
1920
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1883
1921
|
waitForSession: (pendingRef: string, config?: {
|
|
1884
1922
|
pollingIntervalMs: number;
|
|
@@ -1944,12 +1982,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1944
1982
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
1945
1983
|
};
|
|
1946
1984
|
notp: {
|
|
1947
|
-
signUpOrIn: (loginId?: string,
|
|
1985
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
1948
1986
|
customClaims?: Record<string, any>;
|
|
1949
1987
|
templateId?: string;
|
|
1950
1988
|
templateOptions?: {
|
|
1951
1989
|
[x: string]: string;
|
|
1952
1990
|
};
|
|
1991
|
+
} & {
|
|
1992
|
+
providerId?: string;
|
|
1953
1993
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1954
1994
|
pendingRef: string;
|
|
1955
1995
|
redirectUrl: string;
|
|
@@ -1962,18 +2002,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1962
2002
|
middleName?: string;
|
|
1963
2003
|
familyName?: string;
|
|
1964
2004
|
phone?: string;
|
|
1965
|
-
},
|
|
2005
|
+
}, args_2?: {
|
|
1966
2006
|
customClaims?: Record<string, any>;
|
|
1967
2007
|
templateId?: string;
|
|
1968
2008
|
templateOptions?: {
|
|
1969
2009
|
[x: string]: string;
|
|
1970
2010
|
};
|
|
2011
|
+
} & {
|
|
2012
|
+
providerId?: string;
|
|
1971
2013
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1972
2014
|
pendingRef: string;
|
|
1973
2015
|
redirectUrl: string;
|
|
1974
2016
|
image: string;
|
|
1975
2017
|
}>>;
|
|
1976
|
-
signIn: (loginId?: string,
|
|
2018
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
2019
|
+
providerId?: string;
|
|
2020
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1977
2021
|
pendingRef: string;
|
|
1978
2022
|
redirectUrl: string;
|
|
1979
2023
|
image: string;
|
|
@@ -1991,14 +2035,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
1991
2035
|
middleName?: string;
|
|
1992
2036
|
familyName?: string;
|
|
1993
2037
|
phone?: string;
|
|
1994
|
-
},
|
|
2038
|
+
}, args_3?: {
|
|
1995
2039
|
customClaims?: Record<string, any>;
|
|
1996
2040
|
templateId?: string;
|
|
1997
2041
|
templateOptions?: {
|
|
1998
2042
|
[x: string]: string;
|
|
1999
2043
|
};
|
|
2044
|
+
} & {
|
|
2045
|
+
providerId?: string;
|
|
2046
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2047
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
2048
|
+
providerId?: string;
|
|
2000
2049
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2001
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2002
2050
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
2003
2051
|
[x: string]: string;
|
|
2004
2052
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
@@ -2496,13 +2544,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
2496
2544
|
};
|
|
2497
2545
|
enchantedLink: {
|
|
2498
2546
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
2499
|
-
signIn: (loginId: string, URI?: string,
|
|
2500
|
-
|
|
2547
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
2548
|
+
providerId?: string;
|
|
2549
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2550
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
2501
2551
|
customClaims?: Record<string, any>;
|
|
2502
2552
|
templateId?: string;
|
|
2503
2553
|
templateOptions?: {
|
|
2504
2554
|
[x: string]: string;
|
|
2505
2555
|
};
|
|
2556
|
+
} & {
|
|
2557
|
+
providerId?: string;
|
|
2506
2558
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2507
2559
|
signUp: (loginId: string, URI?: string, user?: {
|
|
2508
2560
|
email?: string;
|
|
@@ -2511,12 +2563,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
2511
2563
|
middleName?: string;
|
|
2512
2564
|
familyName?: string;
|
|
2513
2565
|
phone?: string;
|
|
2514
|
-
},
|
|
2566
|
+
}, args_3?: {
|
|
2515
2567
|
customClaims?: Record<string, any>;
|
|
2516
2568
|
templateId?: string;
|
|
2517
2569
|
templateOptions?: {
|
|
2518
2570
|
[x: string]: string;
|
|
2519
2571
|
};
|
|
2572
|
+
} & {
|
|
2573
|
+
providerId?: string;
|
|
2520
2574
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2521
2575
|
waitForSession: (pendingRef: string, config?: {
|
|
2522
2576
|
pollingIntervalMs: number;
|
|
@@ -2582,12 +2636,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
2582
2636
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
2583
2637
|
};
|
|
2584
2638
|
notp: {
|
|
2585
|
-
signUpOrIn: (loginId?: string,
|
|
2639
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
2586
2640
|
customClaims?: Record<string, any>;
|
|
2587
2641
|
templateId?: string;
|
|
2588
2642
|
templateOptions?: {
|
|
2589
2643
|
[x: string]: string;
|
|
2590
2644
|
};
|
|
2645
|
+
} & {
|
|
2646
|
+
providerId?: string;
|
|
2591
2647
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2592
2648
|
pendingRef: string;
|
|
2593
2649
|
redirectUrl: string;
|
|
@@ -2600,18 +2656,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
2600
2656
|
middleName?: string;
|
|
2601
2657
|
familyName?: string;
|
|
2602
2658
|
phone?: string;
|
|
2603
|
-
},
|
|
2659
|
+
}, args_2?: {
|
|
2604
2660
|
customClaims?: Record<string, any>;
|
|
2605
2661
|
templateId?: string;
|
|
2606
2662
|
templateOptions?: {
|
|
2607
2663
|
[x: string]: string;
|
|
2608
2664
|
};
|
|
2665
|
+
} & {
|
|
2666
|
+
providerId?: string;
|
|
2609
2667
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2610
2668
|
pendingRef: string;
|
|
2611
2669
|
redirectUrl: string;
|
|
2612
2670
|
image: string;
|
|
2613
2671
|
}>>;
|
|
2614
|
-
signIn: (loginId?: string,
|
|
2672
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
2673
|
+
providerId?: string;
|
|
2674
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2615
2675
|
pendingRef: string;
|
|
2616
2676
|
redirectUrl: string;
|
|
2617
2677
|
image: string;
|
|
@@ -2629,14 +2689,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
2629
2689
|
middleName?: string;
|
|
2630
2690
|
familyName?: string;
|
|
2631
2691
|
phone?: string;
|
|
2632
|
-
},
|
|
2692
|
+
}, args_3?: {
|
|
2633
2693
|
customClaims?: Record<string, any>;
|
|
2634
2694
|
templateId?: string;
|
|
2635
2695
|
templateOptions?: {
|
|
2636
2696
|
[x: string]: string;
|
|
2637
2697
|
};
|
|
2698
|
+
} & {
|
|
2699
|
+
providerId?: string;
|
|
2700
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2701
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
2702
|
+
providerId?: string;
|
|
2638
2703
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2639
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
2640
2704
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
2641
2705
|
[x: string]: string;
|
|
2642
2706
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
@@ -3126,13 +3190,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3126
3190
|
};
|
|
3127
3191
|
enchantedLink: {
|
|
3128
3192
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
3129
|
-
signIn: (loginId: string, URI?: string,
|
|
3130
|
-
|
|
3193
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
3194
|
+
providerId?: string;
|
|
3195
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3196
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
3131
3197
|
customClaims?: Record<string, any>;
|
|
3132
3198
|
templateId?: string;
|
|
3133
3199
|
templateOptions?: {
|
|
3134
3200
|
[x: string]: string;
|
|
3135
3201
|
};
|
|
3202
|
+
} & {
|
|
3203
|
+
providerId?: string;
|
|
3136
3204
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3137
3205
|
signUp: (loginId: string, URI?: string, user?: {
|
|
3138
3206
|
email?: string;
|
|
@@ -3141,12 +3209,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3141
3209
|
middleName?: string;
|
|
3142
3210
|
familyName?: string;
|
|
3143
3211
|
phone?: string;
|
|
3144
|
-
},
|
|
3212
|
+
}, args_3?: {
|
|
3145
3213
|
customClaims?: Record<string, any>;
|
|
3146
3214
|
templateId?: string;
|
|
3147
3215
|
templateOptions?: {
|
|
3148
3216
|
[x: string]: string;
|
|
3149
3217
|
};
|
|
3218
|
+
} & {
|
|
3219
|
+
providerId?: string;
|
|
3150
3220
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3151
3221
|
waitForSession: (pendingRef: string, config?: {
|
|
3152
3222
|
pollingIntervalMs: number;
|
|
@@ -3212,12 +3282,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3212
3282
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
3213
3283
|
};
|
|
3214
3284
|
notp: {
|
|
3215
|
-
signUpOrIn: (loginId?: string,
|
|
3285
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
3216
3286
|
customClaims?: Record<string, any>;
|
|
3217
3287
|
templateId?: string;
|
|
3218
3288
|
templateOptions?: {
|
|
3219
3289
|
[x: string]: string;
|
|
3220
3290
|
};
|
|
3291
|
+
} & {
|
|
3292
|
+
providerId?: string;
|
|
3221
3293
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3222
3294
|
pendingRef: string;
|
|
3223
3295
|
redirectUrl: string;
|
|
@@ -3230,18 +3302,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3230
3302
|
middleName?: string;
|
|
3231
3303
|
familyName?: string;
|
|
3232
3304
|
phone?: string;
|
|
3233
|
-
},
|
|
3305
|
+
}, args_2?: {
|
|
3234
3306
|
customClaims?: Record<string, any>;
|
|
3235
3307
|
templateId?: string;
|
|
3236
3308
|
templateOptions?: {
|
|
3237
3309
|
[x: string]: string;
|
|
3238
3310
|
};
|
|
3311
|
+
} & {
|
|
3312
|
+
providerId?: string;
|
|
3239
3313
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3240
3314
|
pendingRef: string;
|
|
3241
3315
|
redirectUrl: string;
|
|
3242
3316
|
image: string;
|
|
3243
3317
|
}>>;
|
|
3244
|
-
signIn: (loginId?: string,
|
|
3318
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
3319
|
+
providerId?: string;
|
|
3320
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3245
3321
|
pendingRef: string;
|
|
3246
3322
|
redirectUrl: string;
|
|
3247
3323
|
image: string;
|
|
@@ -3259,14 +3335,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3259
3335
|
middleName?: string;
|
|
3260
3336
|
familyName?: string;
|
|
3261
3337
|
phone?: string;
|
|
3262
|
-
},
|
|
3338
|
+
}, args_3?: {
|
|
3263
3339
|
customClaims?: Record<string, any>;
|
|
3264
3340
|
templateId?: string;
|
|
3265
3341
|
templateOptions?: {
|
|
3266
3342
|
[x: string]: string;
|
|
3267
3343
|
};
|
|
3344
|
+
} & {
|
|
3345
|
+
providerId?: string;
|
|
3346
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3347
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
3348
|
+
providerId?: string;
|
|
3268
3349
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3269
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3270
3350
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
3271
3351
|
[x: string]: string;
|
|
3272
3352
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
@@ -3756,13 +3836,17 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3756
3836
|
};
|
|
3757
3837
|
enchantedLink: {
|
|
3758
3838
|
verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
|
|
3759
|
-
signIn: (loginId: string, URI?: string,
|
|
3760
|
-
|
|
3839
|
+
signIn: (loginId: string, URI?: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
3840
|
+
providerId?: string;
|
|
3841
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3842
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
3761
3843
|
customClaims?: Record<string, any>;
|
|
3762
3844
|
templateId?: string;
|
|
3763
3845
|
templateOptions?: {
|
|
3764
3846
|
[x: string]: string;
|
|
3765
3847
|
};
|
|
3848
|
+
} & {
|
|
3849
|
+
providerId?: string;
|
|
3766
3850
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3767
3851
|
signUp: (loginId: string, URI?: string, user?: {
|
|
3768
3852
|
email?: string;
|
|
@@ -3771,12 +3855,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3771
3855
|
middleName?: string;
|
|
3772
3856
|
familyName?: string;
|
|
3773
3857
|
phone?: string;
|
|
3774
|
-
},
|
|
3858
|
+
}, args_3?: {
|
|
3775
3859
|
customClaims?: Record<string, any>;
|
|
3776
3860
|
templateId?: string;
|
|
3777
3861
|
templateOptions?: {
|
|
3778
3862
|
[x: string]: string;
|
|
3779
3863
|
};
|
|
3864
|
+
} & {
|
|
3865
|
+
providerId?: string;
|
|
3780
3866
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3781
3867
|
waitForSession: (pendingRef: string, config?: {
|
|
3782
3868
|
pollingIntervalMs: number;
|
|
@@ -3842,12 +3928,14 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3842
3928
|
update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
|
|
3843
3929
|
};
|
|
3844
3930
|
notp: {
|
|
3845
|
-
signUpOrIn: (loginId?: string,
|
|
3931
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
3846
3932
|
customClaims?: Record<string, any>;
|
|
3847
3933
|
templateId?: string;
|
|
3848
3934
|
templateOptions?: {
|
|
3849
3935
|
[x: string]: string;
|
|
3850
3936
|
};
|
|
3937
|
+
} & {
|
|
3938
|
+
providerId?: string;
|
|
3851
3939
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3852
3940
|
pendingRef: string;
|
|
3853
3941
|
redirectUrl: string;
|
|
@@ -3860,18 +3948,22 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3860
3948
|
middleName?: string;
|
|
3861
3949
|
familyName?: string;
|
|
3862
3950
|
phone?: string;
|
|
3863
|
-
},
|
|
3951
|
+
}, args_2?: {
|
|
3864
3952
|
customClaims?: Record<string, any>;
|
|
3865
3953
|
templateId?: string;
|
|
3866
3954
|
templateOptions?: {
|
|
3867
3955
|
[x: string]: string;
|
|
3868
3956
|
};
|
|
3957
|
+
} & {
|
|
3958
|
+
providerId?: string;
|
|
3869
3959
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3870
3960
|
pendingRef: string;
|
|
3871
3961
|
redirectUrl: string;
|
|
3872
3962
|
image: string;
|
|
3873
3963
|
}>>;
|
|
3874
|
-
signIn: (loginId?: string,
|
|
3964
|
+
signIn: (loginId?: string, args_1?: _descope_core_js_sdk.LoginOptions & {
|
|
3965
|
+
providerId?: string;
|
|
3966
|
+
}, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3875
3967
|
pendingRef: string;
|
|
3876
3968
|
redirectUrl: string;
|
|
3877
3969
|
image: string;
|
|
@@ -3889,14 +3981,18 @@ declare const decoratedCreateSdk: <A extends CookieConfig>({ persistTokens: isPe
|
|
|
3889
3981
|
middleName?: string;
|
|
3890
3982
|
familyName?: string;
|
|
3891
3983
|
phone?: string;
|
|
3892
|
-
},
|
|
3984
|
+
}, args_3?: {
|
|
3893
3985
|
customClaims?: Record<string, any>;
|
|
3894
3986
|
templateId?: string;
|
|
3895
3987
|
templateOptions?: {
|
|
3896
3988
|
[x: string]: string;
|
|
3897
3989
|
};
|
|
3990
|
+
} & {
|
|
3991
|
+
providerId?: string;
|
|
3992
|
+
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3993
|
+
signIn: (loginId: string, password: string, args_2?: _descope_core_js_sdk.LoginOptions & {
|
|
3994
|
+
providerId?: string;
|
|
3898
3995
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3899
|
-
signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
|
|
3900
3996
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
3901
3997
|
[x: string]: string;
|
|
3902
3998
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|