@descope/react-sdk 2.19.1 → 2.19.3
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 +2 -29
- package/dist/cjs/constants.js +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -9
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
|
|
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:
|
package/dist/cjs/constants.js
CHANGED
|
@@ -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.
|
|
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.3"};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.19.
|
|
1
|
+
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.19.3"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|