We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe867ae commit 97bc8ccCopy full SHA for 97bc8cc
src/SupabaseClient.ts
@@ -314,7 +314,6 @@ export default class SupabaseClient {
314
) {
315
// Token has changed
316
this.realtime.setAuth(token!)
317
- this.functions.setAuth(token!)
318
// Ideally we should call this.auth.recoverSession() - need to make public
319
// to trigger a "SIGNED_IN" event on this client.
320
if (source == 'STORAGE') this.auth.setAuth(token!)
@@ -323,7 +322,6 @@ export default class SupabaseClient {
323
322
} else if (event === 'SIGNED_OUT' || event === 'USER_DELETED') {
324
// Token is removed
325
this.realtime.setAuth(this.supabaseKey)
326
- this.functions.setAuth(this.supabaseKey)
327
if (source == 'STORAGE') this.auth.signOut()
328
}
329
0 commit comments