Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
fix: use onAuthStateChangeSync (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed May 3, 2023
1 parent 5912e39 commit 729a80e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/supabase_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ class SupabaseClient {
}

void _listenForAuthEvents() {
_authStateSubscription = auth.onAuthStateChange.listen(
// ignore: invalid_use_of_internal_member
_authStateSubscription = auth.onAuthStateChangeSync.listen(
(data) {
_handleTokenChanged(data.event, data.session?.accessToken);
},
Expand Down

0 comments on commit 729a80e

Please sign in to comment.