@descope/react-sdk 3.5.7 → 3.6.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.
@@ -52,7 +52,7 @@ declare const createSdkWrapper: <P extends {
52
52
  refreshTokenViaCookie?: import("@descope/web-js-sdk").CookieConfig;
53
53
  }>(config: P) => (((({
54
54
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
55
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
55
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
56
56
  flow: {
57
57
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
58
58
  lastAuth?: Omit<{
@@ -809,7 +809,7 @@ declare const createSdkWrapper: <P extends {
809
809
  }>>;
810
810
  };
811
811
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
812
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
812
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
813
813
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
814
814
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
815
815
  tenants: {
@@ -827,7 +827,7 @@ declare const createSdkWrapper: <P extends {
827
827
  httpClient: _1.HttpClient;
828
828
  } | {
829
829
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
830
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
830
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
831
831
  flow: {
832
832
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
833
833
  lastAuth?: Omit<{
@@ -1584,7 +1584,7 @@ declare const createSdkWrapper: <P extends {
1584
1584
  }>>;
1585
1585
  };
1586
1586
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1587
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
1587
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
1588
1588
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
1589
1589
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
1590
1590
  tenants: {
@@ -1602,7 +1602,7 @@ declare const createSdkWrapper: <P extends {
1602
1602
  httpClient: _1.HttpClient;
1603
1603
  } | {
1604
1604
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1605
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1605
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
1606
1606
  flow: {
1607
1607
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1608
1608
  lastAuth?: Omit<{
@@ -2359,7 +2359,7 @@ declare const createSdkWrapper: <P extends {
2359
2359
  }>>;
2360
2360
  };
2361
2361
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2362
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
2362
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
2363
2363
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
2364
2364
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
2365
2365
  tenants: {
@@ -2392,7 +2392,7 @@ declare const createSdkWrapper: <P extends {
2392
2392
  };
2393
2393
  export declare const createTempSdk: () => (((({
2394
2394
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2395
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2395
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
2396
2396
  flow: {
2397
2397
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2398
2398
  lastAuth?: Omit<{
@@ -3149,7 +3149,7 @@ export declare const createTempSdk: () => (((({
3149
3149
  }>>;
3150
3150
  };
3151
3151
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3152
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
3152
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
3153
3153
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
3154
3154
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
3155
3155
  tenants: {
@@ -3167,7 +3167,7 @@ export declare const createTempSdk: () => (((({
3167
3167
  httpClient: _1.HttpClient;
3168
3168
  } | {
3169
3169
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3170
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3170
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
3171
3171
  flow: {
3172
3172
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3173
3173
  lastAuth?: Omit<{
@@ -3924,7 +3924,7 @@ export declare const createTempSdk: () => (((({
3924
3924
  }>>;
3925
3925
  };
3926
3926
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3927
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
3927
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
3928
3928
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
3929
3929
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
3930
3930
  tenants: {
@@ -3942,7 +3942,7 @@ export declare const createTempSdk: () => (((({
3942
3942
  httpClient: _1.HttpClient;
3943
3943
  } | {
3944
3944
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3945
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3945
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
3946
3946
  flow: {
3947
3947
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3948
3948
  lastAuth?: Omit<{
@@ -4699,7 +4699,7 @@ export declare const createTempSdk: () => (((({
4699
4699
  }>>;
4700
4700
  };
4701
4701
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4702
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
4702
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
4703
4703
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
4704
4704
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
4705
4705
  tenants: {
@@ -4740,7 +4740,7 @@ export declare const getCurrentTenant: (token?: any) => string;
4740
4740
  export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4741
4741
  export declare const getGlobalSdk: () => (((({
4742
4742
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4743
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
4743
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
4744
4744
  flow: {
4745
4745
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
4746
4746
  lastAuth?: Omit<{
@@ -5497,7 +5497,7 @@ export declare const getGlobalSdk: () => (((({
5497
5497
  }>>;
5498
5498
  };
5499
5499
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5500
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
5500
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
5501
5501
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
5502
5502
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
5503
5503
  tenants: {
@@ -5515,7 +5515,7 @@ export declare const getGlobalSdk: () => (((({
5515
5515
  httpClient: _1.HttpClient;
5516
5516
  } | {
5517
5517
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5518
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
5518
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
5519
5519
  flow: {
5520
5520
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5521
5521
  lastAuth?: Omit<{
@@ -6272,7 +6272,7 @@ export declare const getGlobalSdk: () => (((({
6272
6272
  }>>;
6273
6273
  };
6274
6274
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6275
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
6275
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
6276
6276
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
6277
6277
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
6278
6278
  tenants: {
@@ -6290,7 +6290,7 @@ export declare const getGlobalSdk: () => (((({
6290
6290
  httpClient: _1.HttpClient;
6291
6291
  } | {
6292
6292
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6293
- logout: (token?: string) => Promise<_1.SdkResponse<never>>;
6293
+ logout: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
6294
6294
  flow: {
6295
6295
  start: (flowId: string, options?: Pick<_1.FlowStartOptions, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
6296
6296
  lastAuth?: Omit<{
@@ -7047,7 +7047,7 @@ export declare const getGlobalSdk: () => (((({
7047
7047
  }>>;
7048
7048
  };
7049
7049
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
7050
- logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
7050
+ logoutAll: (token?: string, options?: _1.LogoutOptions) => Promise<_1.SdkResponse<_1.LogoutResponse>>;
7051
7051
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
7052
7052
  myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
7053
7053
  tenants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "3.5.7",
3
+ "version": "3.6.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,18 +49,18 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@descope/access-key-management-widget": "0.10.19",
53
- "@descope/applications-portal-widget": "0.9.19",
54
- "@descope/audit-management-widget": "0.9.19",
55
- "@descope/core-js-sdk": "2.78.0",
56
- "@descope/outbound-applications-widget": "0.7.26",
57
- "@descope/role-management-widget": "0.10.19",
52
+ "@descope/access-key-management-widget": "0.10.20",
53
+ "@descope/applications-portal-widget": "0.9.20",
54
+ "@descope/core-js-sdk": "2.79.0",
55
+ "@descope/role-management-widget": "0.10.20",
56
+ "@descope/outbound-applications-widget": "0.7.28",
57
+ "@descope/audit-management-widget": "0.9.20",
58
58
  "@descope/sdk-helpers": "0.11.0",
59
- "@descope/tenant-profile-widget": "0.11.20",
60
- "@descope/user-profile-widget": "0.21.6",
61
- "@descope/user-management-widget": "0.21.17",
62
- "@descope/web-js-sdk": "1.54.7",
63
- "@descope/web-component": "4.7.5"
59
+ "@descope/user-management-widget": "0.21.19",
60
+ "@descope/tenant-profile-widget": "0.11.22",
61
+ "@descope/user-profile-widget": "0.21.8",
62
+ "@descope/web-component": "4.8.1",
63
+ "@descope/web-js-sdk": "1.55.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.29.6",
@@ -82,7 +82,6 @@
82
82
  "@types/node": "^20.0.0",
83
83
  "@types/react": "18.3.18",
84
84
  "@types/react-dom": "18.3.5",
85
- "@types/react-router-dom": "^5.3.3",
86
85
  "babel-jest": "29.7.0",
87
86
  "core-js": "3.40.0",
88
87
  "eslint": "8.57.1",
@@ -116,7 +115,6 @@
116
115
  "react": "18.3.1",
117
116
  "react-dom": "18.3.1",
118
117
  "react-router": "7.18.2",
119
- "react-router-dom": "6.28.1",
120
118
  "rollup": "^4.0.0",
121
119
  "rollup-plugin-auto-external": "^2.0.0",
122
120
  "rollup-plugin-browsersync": "^1.3.3",