Skip to content

Commit cfc6950

Browse files
committed
set local session and user to null within signout
1 parent d498050 commit cfc6950

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ class GoTrueClient {
827827
final accessToken = currentSession?.accessToken;
828828

829829
if (scope != SignOutScope.others) {
830+
_currentSession = null;
831+
_currentUser = null;
830832
await _asyncStorage?.removeItem(
831833
key: '${Constants.defaultStorageKey}-code-verifier');
832834
notifyAllSubscribers(AuthChangeEvent.signedOut);

0 commit comments

Comments
 (0)