@descope/react-sdk 2.7.2 → 2.8.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.
@@ -1275,6 +1275,7 @@ declare const createSdkWrapper: <P extends Omit<{
1275
1275
  }) & {
1276
1276
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
1277
1277
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
1278
+ onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
1278
1279
  }) & {
1279
1280
  getLastUserLoginId: () => string;
1280
1281
  getLastUserDisplayName: () => string;
@@ -2505,6 +2506,7 @@ export declare const createTempSdk: () => ((({
2505
2506
  }) & {
2506
2507
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
2507
2508
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
2509
+ onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
2508
2510
  }) & {
2509
2511
  getLastUserLoginId: () => string;
2510
2512
  getLastUserDisplayName: () => string;
@@ -3742,6 +3744,7 @@ export declare const getGlobalSdk: () => ((({
3742
3744
  }) & {
3743
3745
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
3744
3746
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
3747
+ onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
3745
3748
  }) & {
3746
3749
  getLastUserLoginId: () => string;
3747
3750
  getLastUserDisplayName: () => string;
@@ -54,6 +54,7 @@ export interface IContext {
54
54
  isUserFetched: boolean;
55
55
  fetchSession: () => void;
56
56
  session: string;
57
+ isAuthenticated: boolean;
57
58
  isSessionLoading: boolean;
58
59
  isSessionFetched: boolean;
59
60
  projectId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.7.2",
3
+ "version": "2.8.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,15 +50,15 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@descope/sdk-helpers": "0.2.0",
53
- "@descope/access-key-management-widget": "0.4.1",
54
- "@descope/role-management-widget": "0.3.1",
55
- "@descope/user-management-widget": "0.7.1",
56
- "@descope/audit-management-widget": "0.4.1",
57
- "@descope/user-profile-widget": "0.3.2",
58
- "@descope/applications-portal-widget": "0.3.1",
59
- "@descope/web-component": "3.37.0",
60
- "@descope/core-js-sdk": "2.36.0",
61
- "@descope/web-js-sdk": "1.25.0"
53
+ "@descope/access-key-management-widget": "0.4.2",
54
+ "@descope/audit-management-widget": "0.4.2",
55
+ "@descope/role-management-widget": "0.3.2",
56
+ "@descope/user-profile-widget": "0.3.3",
57
+ "@descope/user-management-widget": "0.7.2",
58
+ "@descope/applications-portal-widget": "0.3.2",
59
+ "@descope/web-component": "3.38.0",
60
+ "@descope/web-js-sdk": "1.26.0",
61
+ "@descope/core-js-sdk": "2.37.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@babel/core": "7.26.0",