@descope/nextjs-sdk 0.8.1 → 0.9.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.
@@ -5,6 +5,10 @@ var reactSdk = require('@descope/react-sdk');
5
5
 
6
6
 
7
7
 
8
+ Object.defineProperty(exports, "getCurrentTenant", {
9
+ enumerable: true,
10
+ get: function () { return reactSdk.getCurrentTenant; }
11
+ });
8
12
  Object.defineProperty(exports, "getJwtPermissions", {
9
13
  enumerable: true,
10
14
  get: function () { return reactSdk.getJwtPermissions; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  const DESCOPE_SESSION_HEADER = 'x-descope-session';
4
4
  const baseHeaders = {
5
5
  'x-descope-sdk-name': 'nextjs',
6
- 'x-descope-sdk-version': "0.8.1"
6
+ 'x-descope-sdk-version': "0.9.0"
7
7
  };
8
8
  const DEFAULT_PUBLIC_ROUTES = {
9
9
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -3,7 +3,7 @@
3
3
  // eslint-disable-next-line import/prefer-default-export
4
4
  const baseHeaders = {
5
5
  'x-descope-sdk-name': 'nextjs',
6
- 'x-descope-sdk-version': "0.8.1"
6
+ 'x-descope-sdk-version': "0.9.0"
7
7
  };
8
8
 
9
9
  exports.baseHeaders = baseHeaders;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- export { getJwtPermissions, getJwtRoles, getRefreshToken, getSessionToken, isRefreshTokenExpired, isSessionTokenExpired, refresh, useDescope, useSession, useUser } from '@descope/react-sdk';
2
+ export { getCurrentTenant, getJwtPermissions, getJwtRoles, getRefreshToken, getSessionToken, isRefreshTokenExpired, isSessionTokenExpired, refresh, useDescope, useSession, useUser } from '@descope/react-sdk';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  const DESCOPE_SESSION_HEADER = 'x-descope-session';
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.8.1"
4
+ 'x-descope-sdk-version': "0.9.0"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.8.1"
4
+ 'x-descope-sdk-version': "0.9.0"
5
5
  };
6
6
 
7
7
  export { baseHeaders };
@@ -1 +1 @@
1
- export { useDescope, useSession, useUser, getSessionToken, getRefreshToken, isSessionTokenExpired, isRefreshTokenExpired, getJwtPermissions, getJwtRoles, refresh } from '@descope/react-sdk';
1
+ export { useDescope, useSession, useUser, getSessionToken, getRefreshToken, isSessionTokenExpired, isRefreshTokenExpired, getJwtPermissions, getJwtRoles, getCurrentTenant, refresh } from '@descope/react-sdk';
@@ -19,6 +19,7 @@ export declare const Descope: React.ComponentType<{
19
19
  tenant?: string;
20
20
  theme?: _2.ThemeOptions;
21
21
  locale?: string;
22
+ nonce?: string;
22
23
  autoFocus?: _2.AutoFocusOptions;
23
24
  validateOnBlur?: boolean;
24
25
  restartOnError?: boolean;
@@ -50,6 +51,7 @@ export declare const SignInFlow: React.ComponentType<{
50
51
  tenant?: string;
51
52
  theme?: _2.ThemeOptions;
52
53
  locale?: string;
54
+ nonce?: string;
53
55
  autoFocus?: _2.AutoFocusOptions;
54
56
  validateOnBlur?: boolean;
55
57
  restartOnError?: boolean;
@@ -79,6 +81,7 @@ export declare const SignUpFlow: React.ComponentType<{
79
81
  tenant?: string;
80
82
  theme?: _2.ThemeOptions;
81
83
  locale?: string;
84
+ nonce?: string;
82
85
  autoFocus?: _2.AutoFocusOptions;
83
86
  validateOnBlur?: boolean;
84
87
  restartOnError?: boolean;
@@ -108,6 +111,7 @@ export declare const SignUpOrInFlow: React.ComponentType<{
108
111
  tenant?: string;
109
112
  theme?: _2.ThemeOptions;
110
113
  locale?: string;
114
+ nonce?: string;
111
115
  autoFocus?: _2.AutoFocusOptions;
112
116
  validateOnBlur?: boolean;
113
117
  restartOnError?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/nextjs-sdk",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Descope NextJS SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -64,9 +64,9 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@descope/node-sdk": "1.6.13",
67
- "@descope/core-js-sdk": "2.37.0",
68
- "@descope/web-component": "3.38.1",
69
- "@descope/react-sdk": "2.8.1"
67
+ "@descope/react-sdk": "2.9.0",
68
+ "@descope/core-js-sdk": "2.38.0",
69
+ "@descope/web-component": "3.38.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "7.26.0",