@descope/react-sdk 2.18.2 → 2.19.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.
@@ -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<{
@@ -565,6 +565,8 @@ declare const createSdkWrapper: <P extends {
565
565
  connect: (appId: string, options?: {
566
566
  redirectUrl?: string;
567
567
  scopes?: string[];
568
+ tenantId?: string;
569
+ tenantLevel?: boolean;
568
570
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
569
571
  };
570
572
  saml: {
@@ -675,7 +677,7 @@ declare const createSdkWrapper: <P extends {
675
677
  getCurrentTenant: (token: string) => string;
676
678
  httpClient: _1.HttpClient;
677
679
  } | {
678
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
680
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
679
681
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
680
682
  flow: {
681
683
  start: (flowId: string, options?: Pick<{
@@ -1193,6 +1195,8 @@ declare const createSdkWrapper: <P extends {
1193
1195
  connect: (appId: string, options?: {
1194
1196
  redirectUrl?: string;
1195
1197
  scopes?: string[];
1198
+ tenantId?: string;
1199
+ tenantLevel?: boolean;
1196
1200
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1197
1201
  };
1198
1202
  saml: {
@@ -1303,7 +1307,7 @@ declare const createSdkWrapper: <P extends {
1303
1307
  getCurrentTenant: (token: string) => string;
1304
1308
  httpClient: _1.HttpClient;
1305
1309
  } | {
1306
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1310
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1307
1311
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1308
1312
  flow: {
1309
1313
  start: (flowId: string, options?: Pick<{
@@ -1821,6 +1825,8 @@ declare const createSdkWrapper: <P extends {
1821
1825
  connect: (appId: string, options?: {
1822
1826
  redirectUrl?: string;
1823
1827
  scopes?: string[];
1828
+ tenantId?: string;
1829
+ tenantLevel?: boolean;
1824
1830
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1825
1831
  };
1826
1832
  saml: {
@@ -1943,7 +1949,7 @@ declare const createSdkWrapper: <P extends {
1943
1949
  getIdToken: () => string;
1944
1950
  };
1945
1951
  export declare const createTempSdk: () => ((({
1946
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1952
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1947
1953
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1948
1954
  flow: {
1949
1955
  start: (flowId: string, options?: Pick<{
@@ -2461,6 +2467,8 @@ export declare const createTempSdk: () => ((({
2461
2467
  connect: (appId: string, options?: {
2462
2468
  redirectUrl?: string;
2463
2469
  scopes?: string[];
2470
+ tenantId?: string;
2471
+ tenantLevel?: boolean;
2464
2472
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2465
2473
  };
2466
2474
  saml: {
@@ -2571,7 +2579,7 @@ export declare const createTempSdk: () => ((({
2571
2579
  getCurrentTenant: (token: string) => string;
2572
2580
  httpClient: _1.HttpClient;
2573
2581
  } | {
2574
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2582
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2575
2583
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2576
2584
  flow: {
2577
2585
  start: (flowId: string, options?: Pick<{
@@ -3089,6 +3097,8 @@ export declare const createTempSdk: () => ((({
3089
3097
  connect: (appId: string, options?: {
3090
3098
  redirectUrl?: string;
3091
3099
  scopes?: string[];
3100
+ tenantId?: string;
3101
+ tenantLevel?: boolean;
3092
3102
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3093
3103
  };
3094
3104
  saml: {
@@ -3199,7 +3209,7 @@ export declare const createTempSdk: () => ((({
3199
3209
  getCurrentTenant: (token: string) => string;
3200
3210
  httpClient: _1.HttpClient;
3201
3211
  } | {
3202
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3212
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3203
3213
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3204
3214
  flow: {
3205
3215
  start: (flowId: string, options?: Pick<{
@@ -3717,6 +3727,8 @@ export declare const createTempSdk: () => ((({
3717
3727
  connect: (appId: string, options?: {
3718
3728
  redirectUrl?: string;
3719
3729
  scopes?: string[];
3730
+ tenantId?: string;
3731
+ tenantLevel?: boolean;
3720
3732
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3721
3733
  };
3722
3734
  saml: {
@@ -3847,7 +3859,7 @@ export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
3847
3859
  export declare const getCurrentTenant: (token?: any) => string;
3848
3860
  export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3849
3861
  export declare const getGlobalSdk: () => ((({
3850
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3862
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3851
3863
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3852
3864
  flow: {
3853
3865
  start: (flowId: string, options?: Pick<{
@@ -4365,6 +4377,8 @@ export declare const getGlobalSdk: () => ((({
4365
4377
  connect: (appId: string, options?: {
4366
4378
  redirectUrl?: string;
4367
4379
  scopes?: string[];
4380
+ tenantId?: string;
4381
+ tenantLevel?: boolean;
4368
4382
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
4369
4383
  };
4370
4384
  saml: {
@@ -4475,7 +4489,7 @@ export declare const getGlobalSdk: () => ((({
4475
4489
  getCurrentTenant: (token: string) => string;
4476
4490
  httpClient: _1.HttpClient;
4477
4491
  } | {
4478
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4492
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4479
4493
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
4480
4494
  flow: {
4481
4495
  start: (flowId: string, options?: Pick<{
@@ -4993,6 +5007,8 @@ export declare const getGlobalSdk: () => ((({
4993
5007
  connect: (appId: string, options?: {
4994
5008
  redirectUrl?: string;
4995
5009
  scopes?: string[];
5010
+ tenantId?: string;
5011
+ tenantLevel?: boolean;
4996
5012
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
4997
5013
  };
4998
5014
  saml: {
@@ -5103,7 +5119,7 @@ export declare const getGlobalSdk: () => ((({
5103
5119
  getCurrentTenant: (token: string) => string;
5104
5120
  httpClient: _1.HttpClient;
5105
5121
  } | {
5106
- refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5122
+ refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5107
5123
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
5108
5124
  flow: {
5109
5125
  start: (flowId: string, options?: Pick<{
@@ -5621,6 +5637,8 @@ export declare const getGlobalSdk: () => ((({
5621
5637
  connect: (appId: string, options?: {
5622
5638
  redirectUrl?: string;
5623
5639
  scopes?: string[];
5640
+ tenantId?: string;
5641
+ tenantLevel?: boolean;
5624
5642
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5625
5643
  };
5626
5644
  saml: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.18.2",
3
+ "version": "2.19.0",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -50,16 +50,16 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@descope/sdk-helpers": "0.4.0",
53
- "@descope/access-key-management-widget": "0.5.5",
54
- "@descope/audit-management-widget": "0.5.5",
55
- "@descope/role-management-widget": "0.4.5",
56
- "@descope/user-management-widget": "0.9.2",
57
- "@descope/user-profile-widget": "0.6.10",
58
- "@descope/applications-portal-widget": "0.4.5",
59
- "@descope/web-component": "3.46.2",
60
- "@descope/web-js-sdk": "1.34.2",
61
- "@descope/tenant-profile-widget": "0.2.7",
62
- "@descope/core-js-sdk": "2.46.2"
53
+ "@descope/audit-management-widget": "0.5.7",
54
+ "@descope/user-profile-widget": "0.6.12",
55
+ "@descope/user-management-widget": "0.9.4",
56
+ "@descope/applications-portal-widget": "0.4.7",
57
+ "@descope/role-management-widget": "0.4.7",
58
+ "@descope/web-component": "3.46.4",
59
+ "@descope/web-js-sdk": "1.35.0",
60
+ "@descope/core-js-sdk": "2.48.0",
61
+ "@descope/access-key-management-widget": "0.5.7",
62
+ "@descope/tenant-profile-widget": "0.2.9"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@babel/core": "7.26.0",