Closed dshukertjr closed 2 years ago
This PR is a rework of https://github.com/supabase-community/gotrue-dart/pull/71 pretty much.
Instead of just retrying token refresh every 5 seconds, this PR will use a Completer to return a valid GoTrueSessionResponse upon successful token refresh after retry.
Completer
GoTrueSessionResponse
Haven't written tests for it, but am currently working on it. Also still working on some refactoring.
This PR is a rework of https://github.com/supabase-community/gotrue-dart/pull/71 pretty much.
Instead of just retrying token refresh every 5 seconds, this PR will use a
Completer
to return a validGoTrueSessionResponse
upon successful token refresh after retry.