@descope/react-sdk 2.19.2 → 2.20.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.
@@ -1,6 +1,7 @@
1
1
  declare const useSession: () => {
2
2
  isSessionLoading: boolean;
3
3
  sessionToken: string;
4
+ claims: import("@descope/core-js-sdk").Claims;
4
5
  isAuthenticated: boolean;
5
6
  };
6
7
  export default useSession;
@@ -1939,6 +1939,7 @@ declare const createSdkWrapper: <P extends {
1939
1939
  }) & {
1940
1940
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
1941
1941
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
1942
+ onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
1942
1943
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
1943
1944
  }) & {
1944
1945
  getLastUserLoginId: () => string;
@@ -3841,6 +3842,7 @@ export declare const createTempSdk: () => ((({
3841
3842
  }) & {
3842
3843
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
3843
3844
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
3845
+ onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
3844
3846
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
3845
3847
  }) & {
3846
3848
  getLastUserLoginId: () => string;
@@ -5751,6 +5753,7 @@ export declare const getGlobalSdk: () => ((({
5751
5753
  }) & {
5752
5754
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
5753
5755
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
5756
+ onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
5754
5757
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
5755
5758
  }) & {
5756
5759
  getLastUserLoginId: () => string;
@@ -69,6 +69,7 @@ export interface IContext {
69
69
  storeLastAuthenticatedUser?: boolean;
70
70
  keepLastAuthenticatedUserAfterLogout?: boolean;
71
71
  refreshCookieName?: string;
72
+ claims?: JWTResponse['claims'];
72
73
  sdk?: Sdk;
73
74
  setUser: React.Dispatch<React.SetStateAction<User>>;
74
75
  setSession: React.Dispatch<React.SetStateAction<string>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.19.2",
3
+ "version": "2.20.0",
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.9",
53
52
  "@descope/sdk-helpers": "0.4.0",
54
- "@descope/audit-management-widget": "0.5.9",
55
- "@descope/role-management-widget": "0.5.1",
56
- "@descope/user-profile-widget": "0.6.14",
57
- "@descope/applications-portal-widget": "0.4.9",
58
- "@descope/user-management-widget": "0.9.6",
59
- "@descope/web-component": "3.47.1",
60
- "@descope/web-js-sdk": "1.35.1",
61
- "@descope/core-js-sdk": "2.49.0",
62
- "@descope/tenant-profile-widget": "0.2.11"
53
+ "@descope/role-management-widget": "0.5.2",
54
+ "@descope/access-key-management-widget": "0.5.10",
55
+ "@descope/audit-management-widget": "0.5.10",
56
+ "@descope/applications-portal-widget": "0.4.10",
57
+ "@descope/user-management-widget": "0.9.8",
58
+ "@descope/web-component": "3.47.3",
59
+ "@descope/user-profile-widget": "0.6.16",
60
+ "@descope/web-js-sdk": "1.36.0",
61
+ "@descope/core-js-sdk": "2.50.0",
62
+ "@descope/tenant-profile-widget": "0.2.13"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@babel/core": "7.26.0",