@descope/react-sdk 2.27.8 → 2.27.10

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.
package/README.md CHANGED
@@ -313,7 +313,9 @@ const App = () => {
313
313
  };
314
314
  ```
315
315
 
316
- Note: `useSession` triggers a single request to the Descope backend to attempt to refresh the session. If you **don't** `useSession` on your app, the session will not be refreshed automatically. If your app does not require `useSession`, you can trigger the refresh manually by calling `refresh` from `useDescope` hook. Example:
316
+ ### Trigger Auto Refresh
317
+
318
+ `useSession` triggers a single request to the Descope backend to attempt to refresh the session. If you **don't** `useSession` in your app, the session will not be refreshed automatically. If your app does not require `useSession`, you can trigger the refresh manually by calling `refresh` from `useDescope` hook. Example:
317
319
 
318
320
  ```js
319
321
  const { refresh } = useDescope();
@@ -1,2 +1,2 @@
1
- "use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.27.8"};
1
+ "use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.27.10"};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.27.8"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
1
+ const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.27.10"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["declare const BUILD_VERSION: string;\n\nexport const baseHeaders = {\n 'x-descope-sdk-name': 'react',\n 'x-descope-sdk-version': BUILD_VERSION,\n};\n\n// This sdk can be used in SSR apps\nexport const IS_BROWSER = typeof window !== 'undefined';\n"],"names":["baseHeaders","IS_BROWSER","window"],"mappings":"AAEa,MAAAA,EAAc,CACzB,qBAAsB,QACtB,wBAAyB,UAIdC,EAA+B,oBAAXC"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["declare const BUILD_VERSION: string;\n\nexport const baseHeaders = {\n 'x-descope-sdk-name': 'react',\n 'x-descope-sdk-version': BUILD_VERSION,\n};\n\n// This sdk can be used in SSR apps\nexport const IS_BROWSER = typeof window !== 'undefined';\n"],"names":["baseHeaders","IS_BROWSER","window"],"mappings":"AAEa,MAAAA,EAAc,CACzB,qBAAsB,QACtB,wBAAyB,WAIdC,EAA+B,oBAAXC"}
package/dist/index.d.ts CHANGED
@@ -105,6 +105,7 @@ declare const createSdkWrapper: <P extends {
105
105
  platform: "ios" | "android";
106
106
  oauthProvider?: string;
107
107
  oauthRedirect?: string;
108
+ externalAuthRedirect?: string;
108
109
  };
109
110
  thirdPartyAppStateId?: string;
110
111
  applicationScopes?: string;
@@ -826,6 +827,7 @@ declare const createSdkWrapper: <P extends {
826
827
  platform: "ios" | "android";
827
828
  oauthProvider?: string;
828
829
  oauthRedirect?: string;
830
+ externalAuthRedirect?: string;
829
831
  };
830
832
  thirdPartyAppStateId?: string;
831
833
  applicationScopes?: string;
@@ -1547,6 +1549,7 @@ declare const createSdkWrapper: <P extends {
1547
1549
  platform: "ios" | "android";
1548
1550
  oauthProvider?: string;
1549
1551
  oauthRedirect?: string;
1552
+ externalAuthRedirect?: string;
1550
1553
  };
1551
1554
  thirdPartyAppStateId?: string;
1552
1555
  applicationScopes?: string;