@descope/react-sdk 2.21.3 → 2.21.4
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/constants.js +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/index.d.ts +72 -24
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/sdk.d.ts +216 -72
- package/package.json +11 -11
package/dist/cjs/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.21.
|
|
1
|
+
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.21.4"};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.21.
|
|
1
|
+
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.21.4"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -535,13 +535,17 @@ declare const createSdkWrapper: <P extends {
|
|
|
535
535
|
};
|
|
536
536
|
enchantedLink: {
|
|
537
537
|
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
538
|
-
signIn: (loginId: string, URI?: string,
|
|
539
|
-
|
|
538
|
+
signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
|
|
539
|
+
providerId?: string;
|
|
540
|
+
}, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
541
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
540
542
|
customClaims?: Record<string, any>;
|
|
541
543
|
templateId?: string;
|
|
542
544
|
templateOptions?: {
|
|
543
545
|
[x: string]: string;
|
|
544
546
|
};
|
|
547
|
+
} & {
|
|
548
|
+
providerId?: string;
|
|
545
549
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
546
550
|
signUp: (loginId: string, URI?: string, user?: {
|
|
547
551
|
email?: string;
|
|
@@ -550,12 +554,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
550
554
|
middleName?: string;
|
|
551
555
|
familyName?: string;
|
|
552
556
|
phone?: string;
|
|
553
|
-
},
|
|
557
|
+
}, args_3?: {
|
|
554
558
|
customClaims?: Record<string, any>;
|
|
555
559
|
templateId?: string;
|
|
556
560
|
templateOptions?: {
|
|
557
561
|
[x: string]: string;
|
|
558
562
|
};
|
|
563
|
+
} & {
|
|
564
|
+
providerId?: string;
|
|
559
565
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
560
566
|
waitForSession: (pendingRef: string, config?: {
|
|
561
567
|
pollingIntervalMs: number;
|
|
@@ -621,12 +627,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
621
627
|
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
622
628
|
};
|
|
623
629
|
notp: {
|
|
624
|
-
signUpOrIn: (loginId?: string,
|
|
630
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
625
631
|
customClaims?: Record<string, any>;
|
|
626
632
|
templateId?: string;
|
|
627
633
|
templateOptions?: {
|
|
628
634
|
[x: string]: string;
|
|
629
635
|
};
|
|
636
|
+
} & {
|
|
637
|
+
providerId?: string;
|
|
630
638
|
}) => Promise<_1.SdkResponse<{
|
|
631
639
|
pendingRef: string;
|
|
632
640
|
redirectUrl: string;
|
|
@@ -639,18 +647,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
639
647
|
middleName?: string;
|
|
640
648
|
familyName?: string;
|
|
641
649
|
phone?: string;
|
|
642
|
-
},
|
|
650
|
+
}, args_2?: {
|
|
643
651
|
customClaims?: Record<string, any>;
|
|
644
652
|
templateId?: string;
|
|
645
653
|
templateOptions?: {
|
|
646
654
|
[x: string]: string;
|
|
647
655
|
};
|
|
656
|
+
} & {
|
|
657
|
+
providerId?: string;
|
|
648
658
|
}) => Promise<_1.SdkResponse<{
|
|
649
659
|
pendingRef: string;
|
|
650
660
|
redirectUrl: string;
|
|
651
661
|
image: string;
|
|
652
662
|
}>>;
|
|
653
|
-
signIn: (loginId?: string,
|
|
663
|
+
signIn: (loginId?: string, args_1?: _1.LoginOptions & {
|
|
664
|
+
providerId?: string;
|
|
665
|
+
}, token?: string) => Promise<_1.SdkResponse<{
|
|
654
666
|
pendingRef: string;
|
|
655
667
|
redirectUrl: string;
|
|
656
668
|
image: string;
|
|
@@ -668,14 +680,18 @@ declare const createSdkWrapper: <P extends {
|
|
|
668
680
|
middleName?: string;
|
|
669
681
|
familyName?: string;
|
|
670
682
|
phone?: string;
|
|
671
|
-
},
|
|
683
|
+
}, args_3?: {
|
|
672
684
|
customClaims?: Record<string, any>;
|
|
673
685
|
templateId?: string;
|
|
674
686
|
templateOptions?: {
|
|
675
687
|
[x: string]: string;
|
|
676
688
|
};
|
|
689
|
+
} & {
|
|
690
|
+
providerId?: string;
|
|
691
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
692
|
+
signIn: (loginId: string, password: string, args_2?: _1.LoginOptions & {
|
|
693
|
+
providerId?: string;
|
|
677
694
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
678
|
-
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
679
695
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
680
696
|
[x: string]: string;
|
|
681
697
|
}) => Promise<_1.SdkResponse<{
|
|
@@ -1165,13 +1181,17 @@ declare const createSdkWrapper: <P extends {
|
|
|
1165
1181
|
};
|
|
1166
1182
|
enchantedLink: {
|
|
1167
1183
|
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
1168
|
-
signIn: (loginId: string, URI?: string,
|
|
1169
|
-
|
|
1184
|
+
signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
|
|
1185
|
+
providerId?: string;
|
|
1186
|
+
}, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1187
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
1170
1188
|
customClaims?: Record<string, any>;
|
|
1171
1189
|
templateId?: string;
|
|
1172
1190
|
templateOptions?: {
|
|
1173
1191
|
[x: string]: string;
|
|
1174
1192
|
};
|
|
1193
|
+
} & {
|
|
1194
|
+
providerId?: string;
|
|
1175
1195
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1176
1196
|
signUp: (loginId: string, URI?: string, user?: {
|
|
1177
1197
|
email?: string;
|
|
@@ -1180,12 +1200,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
1180
1200
|
middleName?: string;
|
|
1181
1201
|
familyName?: string;
|
|
1182
1202
|
phone?: string;
|
|
1183
|
-
},
|
|
1203
|
+
}, args_3?: {
|
|
1184
1204
|
customClaims?: Record<string, any>;
|
|
1185
1205
|
templateId?: string;
|
|
1186
1206
|
templateOptions?: {
|
|
1187
1207
|
[x: string]: string;
|
|
1188
1208
|
};
|
|
1209
|
+
} & {
|
|
1210
|
+
providerId?: string;
|
|
1189
1211
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1190
1212
|
waitForSession: (pendingRef: string, config?: {
|
|
1191
1213
|
pollingIntervalMs: number;
|
|
@@ -1251,12 +1273,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
1251
1273
|
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1252
1274
|
};
|
|
1253
1275
|
notp: {
|
|
1254
|
-
signUpOrIn: (loginId?: string,
|
|
1276
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
1255
1277
|
customClaims?: Record<string, any>;
|
|
1256
1278
|
templateId?: string;
|
|
1257
1279
|
templateOptions?: {
|
|
1258
1280
|
[x: string]: string;
|
|
1259
1281
|
};
|
|
1282
|
+
} & {
|
|
1283
|
+
providerId?: string;
|
|
1260
1284
|
}) => Promise<_1.SdkResponse<{
|
|
1261
1285
|
pendingRef: string;
|
|
1262
1286
|
redirectUrl: string;
|
|
@@ -1269,18 +1293,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
1269
1293
|
middleName?: string;
|
|
1270
1294
|
familyName?: string;
|
|
1271
1295
|
phone?: string;
|
|
1272
|
-
},
|
|
1296
|
+
}, args_2?: {
|
|
1273
1297
|
customClaims?: Record<string, any>;
|
|
1274
1298
|
templateId?: string;
|
|
1275
1299
|
templateOptions?: {
|
|
1276
1300
|
[x: string]: string;
|
|
1277
1301
|
};
|
|
1302
|
+
} & {
|
|
1303
|
+
providerId?: string;
|
|
1278
1304
|
}) => Promise<_1.SdkResponse<{
|
|
1279
1305
|
pendingRef: string;
|
|
1280
1306
|
redirectUrl: string;
|
|
1281
1307
|
image: string;
|
|
1282
1308
|
}>>;
|
|
1283
|
-
signIn: (loginId?: string,
|
|
1309
|
+
signIn: (loginId?: string, args_1?: _1.LoginOptions & {
|
|
1310
|
+
providerId?: string;
|
|
1311
|
+
}, token?: string) => Promise<_1.SdkResponse<{
|
|
1284
1312
|
pendingRef: string;
|
|
1285
1313
|
redirectUrl: string;
|
|
1286
1314
|
image: string;
|
|
@@ -1298,14 +1326,18 @@ declare const createSdkWrapper: <P extends {
|
|
|
1298
1326
|
middleName?: string;
|
|
1299
1327
|
familyName?: string;
|
|
1300
1328
|
phone?: string;
|
|
1301
|
-
},
|
|
1329
|
+
}, args_3?: {
|
|
1302
1330
|
customClaims?: Record<string, any>;
|
|
1303
1331
|
templateId?: string;
|
|
1304
1332
|
templateOptions?: {
|
|
1305
1333
|
[x: string]: string;
|
|
1306
1334
|
};
|
|
1335
|
+
} & {
|
|
1336
|
+
providerId?: string;
|
|
1337
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1338
|
+
signIn: (loginId: string, password: string, args_2?: _1.LoginOptions & {
|
|
1339
|
+
providerId?: string;
|
|
1307
1340
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1308
|
-
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1309
1341
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
1310
1342
|
[x: string]: string;
|
|
1311
1343
|
}) => Promise<_1.SdkResponse<{
|
|
@@ -1795,13 +1827,17 @@ declare const createSdkWrapper: <P extends {
|
|
|
1795
1827
|
};
|
|
1796
1828
|
enchantedLink: {
|
|
1797
1829
|
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
1798
|
-
signIn: (loginId: string, URI?: string,
|
|
1799
|
-
|
|
1830
|
+
signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
|
|
1831
|
+
providerId?: string;
|
|
1832
|
+
}, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1833
|
+
signUpOrIn: (loginId: string, URI?: string, args_2?: {
|
|
1800
1834
|
customClaims?: Record<string, any>;
|
|
1801
1835
|
templateId?: string;
|
|
1802
1836
|
templateOptions?: {
|
|
1803
1837
|
[x: string]: string;
|
|
1804
1838
|
};
|
|
1839
|
+
} & {
|
|
1840
|
+
providerId?: string;
|
|
1805
1841
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1806
1842
|
signUp: (loginId: string, URI?: string, user?: {
|
|
1807
1843
|
email?: string;
|
|
@@ -1810,12 +1846,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
1810
1846
|
middleName?: string;
|
|
1811
1847
|
familyName?: string;
|
|
1812
1848
|
phone?: string;
|
|
1813
|
-
},
|
|
1849
|
+
}, args_3?: {
|
|
1814
1850
|
customClaims?: Record<string, any>;
|
|
1815
1851
|
templateId?: string;
|
|
1816
1852
|
templateOptions?: {
|
|
1817
1853
|
[x: string]: string;
|
|
1818
1854
|
};
|
|
1855
|
+
} & {
|
|
1856
|
+
providerId?: string;
|
|
1819
1857
|
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1820
1858
|
waitForSession: (pendingRef: string, config?: {
|
|
1821
1859
|
pollingIntervalMs: number;
|
|
@@ -1881,12 +1919,14 @@ declare const createSdkWrapper: <P extends {
|
|
|
1881
1919
|
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1882
1920
|
};
|
|
1883
1921
|
notp: {
|
|
1884
|
-
signUpOrIn: (loginId?: string,
|
|
1922
|
+
signUpOrIn: (loginId?: string, args_1?: {
|
|
1885
1923
|
customClaims?: Record<string, any>;
|
|
1886
1924
|
templateId?: string;
|
|
1887
1925
|
templateOptions?: {
|
|
1888
1926
|
[x: string]: string;
|
|
1889
1927
|
};
|
|
1928
|
+
} & {
|
|
1929
|
+
providerId?: string;
|
|
1890
1930
|
}) => Promise<_1.SdkResponse<{
|
|
1891
1931
|
pendingRef: string;
|
|
1892
1932
|
redirectUrl: string;
|
|
@@ -1899,18 +1939,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
1899
1939
|
middleName?: string;
|
|
1900
1940
|
familyName?: string;
|
|
1901
1941
|
phone?: string;
|
|
1902
|
-
},
|
|
1942
|
+
}, args_2?: {
|
|
1903
1943
|
customClaims?: Record<string, any>;
|
|
1904
1944
|
templateId?: string;
|
|
1905
1945
|
templateOptions?: {
|
|
1906
1946
|
[x: string]: string;
|
|
1907
1947
|
};
|
|
1948
|
+
} & {
|
|
1949
|
+
providerId?: string;
|
|
1908
1950
|
}) => Promise<_1.SdkResponse<{
|
|
1909
1951
|
pendingRef: string;
|
|
1910
1952
|
redirectUrl: string;
|
|
1911
1953
|
image: string;
|
|
1912
1954
|
}>>;
|
|
1913
|
-
signIn: (loginId?: string,
|
|
1955
|
+
signIn: (loginId?: string, args_1?: _1.LoginOptions & {
|
|
1956
|
+
providerId?: string;
|
|
1957
|
+
}, token?: string) => Promise<_1.SdkResponse<{
|
|
1914
1958
|
pendingRef: string;
|
|
1915
1959
|
redirectUrl: string;
|
|
1916
1960
|
image: string;
|
|
@@ -1928,14 +1972,18 @@ declare const createSdkWrapper: <P extends {
|
|
|
1928
1972
|
middleName?: string;
|
|
1929
1973
|
familyName?: string;
|
|
1930
1974
|
phone?: string;
|
|
1931
|
-
},
|
|
1975
|
+
}, args_3?: {
|
|
1932
1976
|
customClaims?: Record<string, any>;
|
|
1933
1977
|
templateId?: string;
|
|
1934
1978
|
templateOptions?: {
|
|
1935
1979
|
[x: string]: string;
|
|
1936
1980
|
};
|
|
1981
|
+
} & {
|
|
1982
|
+
providerId?: string;
|
|
1983
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1984
|
+
signIn: (loginId: string, password: string, args_2?: _1.LoginOptions & {
|
|
1985
|
+
providerId?: string;
|
|
1937
1986
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1938
|
-
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1939
1987
|
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
1940
1988
|
[x: string]: string;
|
|
1941
1989
|
}) => Promise<_1.SdkResponse<{
|