Skip to content

Commit

Permalink
fix: clear this.changedAccessToken after signOut (#645)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Creviston <jcreviston@pm.me>
  • Loading branch information
Jason Creviston and Jason Creviston committed Dec 30, 2022
1 parent 8709d99 commit 66a58d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SupabaseClient.ts
Expand Up @@ -295,6 +295,7 @@ export default class SupabaseClient<
// Token is removed
this.realtime.setAuth(this.supabaseKey)
if (source == 'STORAGE') this.auth.signOut()
this.changedAccessToken = undefined
}
}
}

0 comments on commit 66a58d2

Please sign in to comment.