Skip to content

Commit 97bc8cc

Browse files
fernandolguevarainian
authored andcommitted
fix(client): getter always returns a new FunctionsClient instance
1 parent fe867ae commit 97bc8cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/SupabaseClient.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ export default class SupabaseClient {
314314
) {
315315
// Token has changed
316316
this.realtime.setAuth(token!)
317-
this.functions.setAuth(token!)
318317
// Ideally we should call this.auth.recoverSession() - need to make public
319318
// to trigger a "SIGNED_IN" event on this client.
320319
if (source == 'STORAGE') this.auth.setAuth(token!)
@@ -323,7 +322,6 @@ export default class SupabaseClient {
323322
} else if (event === 'SIGNED_OUT' || event === 'USER_DELETED') {
324323
// Token is removed
325324
this.realtime.setAuth(this.supabaseKey)
326-
this.functions.setAuth(this.supabaseKey)
327325
if (source == 'STORAGE') this.auth.signOut()
328326
}
329327
}

0 commit comments

Comments
 (0)