-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gotrue, supabase_flutter): New auth token refresh algorithm (#879)
* align _callRefreshSession * complete fetch rework * Update the methods on gotrue-dart * update the app lifecycle change listener * Complete ticking behavior except tests * minor comment update * update the behavior when the SDK failed to refresh the token when making request * adjust gotrue tests * fix supabase test * fix supabase_flutter tests * Fix supabase-flutter test * stop autorefresh timer within widget test * Update packages/gotrue/lib/src/constants.dart Co-authored-by: Vinzent <vinzent03@proton.me> * Update packages/gotrue/lib/src/gotrue_client.dart Co-authored-by: Vinzent <vinzent03@proton.me> * Update packages/gotrue/lib/src/gotrue_client.dart Co-authored-by: Vinzent <vinzent03@proton.me> * Update packages/gotrue/lib/src/gotrue_client.dart Co-authored-by: Vinzent <vinzent03@proton.me> * Update packages/gotrue/lib/src/gotrue_client.dart * Update packages/gotrue/lib/src/gotrue_client.dart * minor refactor within _autoRefreshTokenTick * rename errors to exceptions * style: remove redundant bracket * Have supabase_flutter respect the autoRefreshToken option for refreshing session * remove outdated comment on _callRefreshToken * Add error to onAuthStateChange stream for call refresh token * startAutoRefresh within gotrue --------- Co-authored-by: Vinzent <vinzent03@proton.me>
- Loading branch information
1 parent
54a0b97
commit 9993168
Showing
13 changed files
with
355 additions
and
235 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
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.