@descope/react-sdk 2.26.8 → 2.27.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.
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { CookieConfig, OidcConfig } from '@descope/web-js-sdk';
2
+ import { CookieConfig, OidcConfig, AutoRefreshConfig } from '@descope/web-js-sdk';
3
3
  import { CustomStorage } from '@descope/web-component';
4
4
  import useSdk from './useSdk';
5
5
  type Hooks = Parameters<typeof useSdk>[0]['hooks'];
@@ -9,7 +9,7 @@ interface IAuthProviderProps {
9
9
  baseStaticUrl?: string;
10
10
  baseCdnUrl?: string;
11
11
  persistTokens?: boolean;
12
- autoRefresh?: boolean;
12
+ autoRefresh?: AutoRefreshConfig;
13
13
  sessionTokenViaCookie?: CookieConfig;
14
14
  refreshTokenViaCookie?: CookieConfig;
15
15
  hooks?: Hooks;
@@ -39,9 +39,9 @@ declare const createSdkWrapper: <P extends {
39
39
  } & {
40
40
  fpKey?: string;
41
41
  fpLoad?: boolean;
42
- } & {
43
- autoRefresh?: boolean;
44
42
  } & import("@descope/web-js-sdk").FlowNonceOptions & {
43
+ autoRefresh?: import("@descope/web-js-sdk").AutoRefreshConfig;
44
+ } & {
45
45
  storeLastAuthenticatedUser?: boolean;
46
46
  keepLastAuthenticatedUserAfterLogout?: boolean;
47
47
  } & {
@@ -50,7 +50,7 @@ declare const createSdkWrapper: <P extends {
50
50
  preview?: boolean;
51
51
  sessionTokenViaCookie?: import("@descope/web-js-sdk").CookieConfig;
52
52
  refreshTokenViaCookie?: import("@descope/web-js-sdk").CookieConfig;
53
- }>(config: P) => ((({
53
+ }>(config: P) => (((({
54
54
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
55
55
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
56
56
  flow: {
@@ -2215,6 +2215,8 @@ declare const createSdkWrapper: <P extends {
2215
2215
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
2216
2216
  onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
2217
2217
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
2218
+ }) & {
2219
+ markUserActive: () => void;
2218
2220
  }) & {
2219
2221
  getLastUserLoginId: () => string;
2220
2222
  getLastUserDisplayName: () => string;
@@ -2223,7 +2225,7 @@ declare const createSdkWrapper: <P extends {
2223
2225
  getSessionToken: () => string;
2224
2226
  getIdToken: () => string;
2225
2227
  };
2226
- export declare const createTempSdk: () => ((({
2228
+ export declare const createTempSdk: () => (((({
2227
2229
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2228
2230
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2229
2231
  flow: {
@@ -4388,6 +4390,8 @@ export declare const createTempSdk: () => ((({
4388
4390
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
4389
4391
  onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
4390
4392
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
4393
+ }) & {
4394
+ markUserActive: () => void;
4391
4395
  }) & {
4392
4396
  getLastUserLoginId: () => string;
4393
4397
  getLastUserDisplayName: () => string;
@@ -4404,7 +4408,7 @@ export declare const getJwtPermissions: (token?: any, tenant?: string) => string
4404
4408
  export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
4405
4409
  export declare const getCurrentTenant: (token?: any) => string;
4406
4410
  export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4407
- export declare const getGlobalSdk: () => ((({
4411
+ export declare const getGlobalSdk: () => (((({
4408
4412
  refresh: (token?: string, tryRefresh?: boolean) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4409
4413
  logout: (token?: string) => Promise<_1.SdkResponse<never>>;
4410
4414
  flow: {
@@ -6569,6 +6573,8 @@ export declare const getGlobalSdk: () => ((({
6569
6573
  onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
6570
6574
  onClaimsChange: (cb: (data: _1.Claims) => void) => () => any[];
6571
6575
  onIsAuthenticatedChange: (cb: (isAuthenticated: boolean) => void) => () => any[];
6576
+ }) & {
6577
+ markUserActive: () => void;
6572
6578
  }) & {
6573
6579
  getLastUserLoginId: () => string;
6574
6580
  getLastUserDisplayName: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.26.8",
3
+ "version": "2.27.1",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -50,17 +50,17 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@descope/sdk-helpers": "0.6.0",
53
- "@descope/access-key-management-widget": "0.5.36",
54
- "@descope/role-management-widget": "0.5.28",
55
- "@descope/audit-management-widget": "0.5.36",
56
- "@descope/user-management-widget": "0.11.13",
57
- "@descope/applications-portal-widget": "0.5.19",
58
- "@descope/user-profile-widget": "0.9.8",
59
- "@descope/web-component": "3.57.0",
60
- "@descope/web-js-sdk": "1.46.0",
53
+ "@descope/role-management-widget": "0.5.29",
54
+ "@descope/audit-management-widget": "0.5.37",
55
+ "@descope/user-profile-widget": "0.9.10",
56
+ "@descope/access-key-management-widget": "0.5.37",
57
+ "@descope/user-management-widget": "0.11.15",
58
+ "@descope/applications-portal-widget": "0.5.20",
59
+ "@descope/outbound-applications-widget": "0.2.26",
60
+ "@descope/web-component": "3.58.0",
61
+ "@descope/web-js-sdk": "1.47.0",
61
62
  "@descope/core-js-sdk": "2.58.0",
62
- "@descope/outbound-applications-widget": "0.2.24",
63
- "@descope/tenant-profile-widget": "0.5.24"
63
+ "@descope/tenant-profile-widget": "0.5.26"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.26.0",