diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index 20ec9183..8e802844 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -336,10 +336,12 @@ export default class SupabaseClient< this.changedAccessToken !== token ) { this.changedAccessToken = token - } else if (event === 'SIGNED_OUT') { this.realtime.setAuth() + } else if (event === 'SIGNED_OUT') { if (source == 'STORAGE') this.auth.signOut() this.changedAccessToken = undefined + this.realtime.setAuth() } + console.log(event) } }