@descope/react-sdk 2.18.3 → 2.19.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/dist/cjs/components/AuthProvider/AuthProvider.js +1 -1
- package/dist/cjs/components/AuthProvider/AuthProvider.js.map +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/esm/components/AuthProvider/AuthProvider.js +1 -1
- package/dist/esm/components/AuthProvider/AuthProvider.js.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/sdk.d.ts +18 -18
- package/package.json +11 -11
package/dist/types/sdk.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
47
47
|
preview?: boolean;
|
|
48
48
|
sessionTokenViaCookie?: import("@descope/web-js-sdk").CookieConfig;
|
|
49
49
|
}>(config: P) => ((({
|
|
50
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
50
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
51
51
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
52
52
|
flow: {
|
|
53
53
|
start: (flowId: string, options?: Pick<{
|
|
@@ -570,7 +570,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
570
570
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
571
571
|
};
|
|
572
572
|
saml: {
|
|
573
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
573
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
574
574
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
575
575
|
};
|
|
576
576
|
totp: {
|
|
@@ -677,7 +677,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
677
677
|
getCurrentTenant: (token: string) => string;
|
|
678
678
|
httpClient: _1.HttpClient;
|
|
679
679
|
} | {
|
|
680
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
680
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
681
681
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
682
682
|
flow: {
|
|
683
683
|
start: (flowId: string, options?: Pick<{
|
|
@@ -1200,7 +1200,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
1200
1200
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1201
1201
|
};
|
|
1202
1202
|
saml: {
|
|
1203
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1203
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1204
1204
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1205
1205
|
};
|
|
1206
1206
|
totp: {
|
|
@@ -1307,7 +1307,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
1307
1307
|
getCurrentTenant: (token: string) => string;
|
|
1308
1308
|
httpClient: _1.HttpClient;
|
|
1309
1309
|
} | {
|
|
1310
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1310
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1311
1311
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1312
1312
|
flow: {
|
|
1313
1313
|
start: (flowId: string, options?: Pick<{
|
|
@@ -1830,7 +1830,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
1830
1830
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1831
1831
|
};
|
|
1832
1832
|
saml: {
|
|
1833
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1833
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1834
1834
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1835
1835
|
};
|
|
1836
1836
|
totp: {
|
|
@@ -1949,7 +1949,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
1949
1949
|
getIdToken: () => string;
|
|
1950
1950
|
};
|
|
1951
1951
|
export declare const createTempSdk: () => ((({
|
|
1952
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1952
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1953
1953
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1954
1954
|
flow: {
|
|
1955
1955
|
start: (flowId: string, options?: Pick<{
|
|
@@ -2472,7 +2472,7 @@ export declare const createTempSdk: () => ((({
|
|
|
2472
2472
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2473
2473
|
};
|
|
2474
2474
|
saml: {
|
|
2475
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2475
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2476
2476
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2477
2477
|
};
|
|
2478
2478
|
totp: {
|
|
@@ -2579,7 +2579,7 @@ export declare const createTempSdk: () => ((({
|
|
|
2579
2579
|
getCurrentTenant: (token: string) => string;
|
|
2580
2580
|
httpClient: _1.HttpClient;
|
|
2581
2581
|
} | {
|
|
2582
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2582
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2583
2583
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2584
2584
|
flow: {
|
|
2585
2585
|
start: (flowId: string, options?: Pick<{
|
|
@@ -3102,7 +3102,7 @@ export declare const createTempSdk: () => ((({
|
|
|
3102
3102
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3103
3103
|
};
|
|
3104
3104
|
saml: {
|
|
3105
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3105
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3106
3106
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3107
3107
|
};
|
|
3108
3108
|
totp: {
|
|
@@ -3209,7 +3209,7 @@ export declare const createTempSdk: () => ((({
|
|
|
3209
3209
|
getCurrentTenant: (token: string) => string;
|
|
3210
3210
|
httpClient: _1.HttpClient;
|
|
3211
3211
|
} | {
|
|
3212
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3212
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3213
3213
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3214
3214
|
flow: {
|
|
3215
3215
|
start: (flowId: string, options?: Pick<{
|
|
@@ -3732,7 +3732,7 @@ export declare const createTempSdk: () => ((({
|
|
|
3732
3732
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3733
3733
|
};
|
|
3734
3734
|
saml: {
|
|
3735
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3735
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
3736
3736
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3737
3737
|
};
|
|
3738
3738
|
totp: {
|
|
@@ -3859,7 +3859,7 @@ export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
|
|
|
3859
3859
|
export declare const getCurrentTenant: (token?: any) => string;
|
|
3860
3860
|
export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3861
3861
|
export declare const getGlobalSdk: () => ((({
|
|
3862
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3862
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3863
3863
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3864
3864
|
flow: {
|
|
3865
3865
|
start: (flowId: string, options?: Pick<{
|
|
@@ -4382,7 +4382,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4382
4382
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
4383
4383
|
};
|
|
4384
4384
|
saml: {
|
|
4385
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
4385
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
4386
4386
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4387
4387
|
};
|
|
4388
4388
|
totp: {
|
|
@@ -4489,7 +4489,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4489
4489
|
getCurrentTenant: (token: string) => string;
|
|
4490
4490
|
httpClient: _1.HttpClient;
|
|
4491
4491
|
} | {
|
|
4492
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4492
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4493
4493
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4494
4494
|
flow: {
|
|
4495
4495
|
start: (flowId: string, options?: Pick<{
|
|
@@ -5012,7 +5012,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5012
5012
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5013
5013
|
};
|
|
5014
5014
|
saml: {
|
|
5015
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5015
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5016
5016
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5017
5017
|
};
|
|
5018
5018
|
totp: {
|
|
@@ -5119,7 +5119,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5119
5119
|
getCurrentTenant: (token: string) => string;
|
|
5120
5120
|
httpClient: _1.HttpClient;
|
|
5121
5121
|
} | {
|
|
5122
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5122
|
+
refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5123
5123
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
5124
5124
|
flow: {
|
|
5125
5125
|
start: (flowId: string, options?: Pick<{
|
|
@@ -5642,7 +5642,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5642
5642
|
}, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5643
5643
|
};
|
|
5644
5644
|
saml: {
|
|
5645
|
-
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5645
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
5646
5646
|
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5647
5647
|
};
|
|
5648
5648
|
totp: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/react-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.1",
|
|
4
4
|
"description": "Descope React SDK",
|
|
5
5
|
"author": "Descope Team <info@descope.com>",
|
|
6
6
|
"homepage": "https://github.com/descope/descope-js",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@descope/access-key-management-widget": "0.5.6",
|
|
53
52
|
"@descope/sdk-helpers": "0.4.0",
|
|
54
|
-
"@descope/audit-management-widget": "0.5.
|
|
55
|
-
"@descope/
|
|
56
|
-
"@descope/
|
|
57
|
-
"@descope/user-
|
|
58
|
-
"@descope/
|
|
59
|
-
"@descope/
|
|
60
|
-
"@descope/web-component": "3.
|
|
61
|
-
"@descope/
|
|
62
|
-
"@descope/
|
|
53
|
+
"@descope/audit-management-widget": "0.5.8",
|
|
54
|
+
"@descope/role-management-widget": "0.5.0",
|
|
55
|
+
"@descope/access-key-management-widget": "0.5.8",
|
|
56
|
+
"@descope/user-management-widget": "0.9.5",
|
|
57
|
+
"@descope/user-profile-widget": "0.6.13",
|
|
58
|
+
"@descope/applications-portal-widget": "0.4.8",
|
|
59
|
+
"@descope/web-component": "3.47.0",
|
|
60
|
+
"@descope/web-js-sdk": "1.35.1",
|
|
61
|
+
"@descope/core-js-sdk": "2.49.0",
|
|
62
|
+
"@descope/tenant-profile-widget": "0.2.10"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@babel/core": "7.26.0",
|