@descope/react-sdk 2.19.0 → 2.19.2

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
@@ -293,8 +293,8 @@ useEffect(() => {
293
293
  }, [refresh]);
294
294
  ```
295
295
 
296
-
297
296
  ### Auto refresh session token
297
+
298
298
  Descope SDK automatically refreshes the session token when it is about to expire. This is done in the background using the refresh token, without any additional configuration.
299
299
  If you want to disable this behavior, you can pass `autoRefresh={false}` to the `AuthProvider` component. This will prevent the SDK from automatically refreshing the session token.
300
300
 
@@ -652,7 +652,7 @@ export DESCOPE_PROJECT_ID=<Project-ID>
652
652
  ```
653
653
 
654
654
  Alternatively, put the environment variable in `.env` file in the project root directory.
655
- See bellow for an `.env` file template with more information.
655
+ See the `.env.example` file for a reference.
656
656
 
657
657
  ### Run Example
658
658
 
@@ -684,33 +684,6 @@ See the following table for customization environment variables for the example
684
684
  | DESCOPE_OIDC_ENABLED | **"true"** - Use OIDC login | None |
685
685
  | DESCOPE_OIDC_APPLICATION_ID | Descope OIDC Application ID, In case OIDC login is used | None |
686
686
 
687
- Example for `.env` file template:
688
-
689
- ```
690
- # Your project ID
691
- DESCOPE_PROJECT_ID="<Project-ID>"
692
- # Login flow ID
693
- DESCOPE_FLOW_ID=""
694
- # Descope base URL
695
- DESCOPE_BASE_URL=""
696
- # Descope base static URL
697
- DESCOPE_BASE_STATIC_URL=""
698
- # Set flow theme to dark
699
- DESCOPE_THEME=dark
700
- # Set flow locale, default is browser's locale
701
- DESCOPE_LOCALE=""
702
- # Flow Redirect URL
703
- DESCOPE_REDIRECT_URL=""
704
- # Tenant ID
705
- DESCOPE_TENANT_ID=""
706
- # Enable debugger
707
- DESCOPE_DEBUG_MODE=true
708
- # Show step-up flow for logged in user
709
- DESCOPE_STEP_UP_FLOW_ID=step-up
710
- # Telemetry key
711
- DESCOPE_TELEMETRY_KEY=""
712
- ```
713
-
714
687
  ## Performance / Bundle Size
715
688
 
716
689
  To improve modularity and reduce bundle size, all flow-related utilities are available also under `@descope/react-sdk/flows` subpath. Example:
@@ -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.19.0"};
1
+ "use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.19.2"};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.19.0"},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.19.2"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
2
2
  //# sourceMappingURL=constants.js.map
package/dist/index.d.ts CHANGED
@@ -601,7 +601,7 @@ declare const createSdkWrapper: <P extends {
601
601
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
602
602
  };
603
603
  saml: {
604
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
604
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
605
605
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
606
606
  };
607
607
  totp: {
@@ -1231,7 +1231,7 @@ declare const createSdkWrapper: <P extends {
1231
1231
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1232
1232
  };
1233
1233
  saml: {
1234
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1234
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1235
1235
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1236
1236
  };
1237
1237
  totp: {
@@ -1861,7 +1861,7 @@ declare const createSdkWrapper: <P extends {
1861
1861
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1862
1862
  };
1863
1863
  saml: {
1864
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1864
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1865
1865
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1866
1866
  };
1867
1867
  totp: {