-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: DO-3034 support seamless handling of refresh tokens (#345)
* WIP: remove auth context in favor of global store; add token refresh endpoint, add autorefresh logic to request helper * Http utils test * Add tests for refresh token endpoint * Make refresh sync * Lint * Fix JS tests * Version bump to v1.14.0-alpha.0 [skip ci] * Add automatic token refresh, pass previous session_token to refresh_token * Version bump to v1.14.0-alpha.1 [skip ci] * Double notify * Update changelog * Remove unnecessary refresh interval * Improve global store documentation * Notify live WS connections of token data changes to keep auth ContextVars up-to-date in WS message handlers * Lint fix * Version bump to v1.14.0-alpha.2 [skip ci] * Remove backend WS connection update, use client->server message instead. Update GlobalState to wrap localStorage instead of in-memory for cross-tab syncing * Add server-side cache to prevent concurrent token refreshes or subsequent ones within a short window * Version bump to v1.14.0-alpha.3 [skip ci] * Cleanup * Revert changelogs to NEXT * OOps * Use direct subscription instead * Rename arg * Add cancellation for test CI --------- Co-authored-by: GitHub Actions Bot <>
- Loading branch information
1 parent
60887f8
commit 9628b09
Showing
68 changed files
with
1,771 additions
and
838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"npmClient": "pnpm", | ||
"version": "1.13.1", | ||
"version": "1.14.0-alpha.3", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.