@passflow/core 0.34.0 → 0.35.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.
- package/README.md +3 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +695 -666
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -877,7 +877,8 @@ const refreshToken = async () => {
|
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
// Set tokens manually
|
|
880
|
+
// Set tokens manually. They replace the stored session: pass every token you want to keep
|
|
881
|
+
// (read the current ones with getTokens()).
|
|
881
882
|
const setTokens = async (tokens) => {
|
|
882
883
|
try {
|
|
883
884
|
await passflow.setTokens({
|
|
@@ -1237,7 +1238,7 @@ Configuration options:
|
|
|
1237
1238
|
| `getTokensCache()` | Get current tokens |
|
|
1238
1239
|
| `getParsedTokenCache()` | Get parsed tokens |
|
|
1239
1240
|
| `refreshToken()` | Refresh the access token |
|
|
1240
|
-
| `setTokens(tokens)` |
|
|
1241
|
+
| `setTokens(tokens)` | Replace the stored tokens |
|
|
1241
1242
|
| `handleTokensRedirect()` | Handle tokens from redirect |
|
|
1242
1243
|
| `authRedirectUrl(options)` | Generate an auth redirect URL |
|
|
1243
1244
|
| `authRedirect(options)` | Redirect to hosted sign-in in the app's mode (async, see [Hosted Sign-In](#hosted-sign-in)) |
|