From 360b75f9fd28b5727c6b05a56f3f7ebdbf977e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Caba=C3=A7o?= Date: Wed, 18 Dec 2024 23:44:54 +0000 Subject: [PATCH] fix: Realtime set auth on handleTokenChanged --- src/SupabaseClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index 20ec9183..6d301e6a 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -336,10 +336,11 @@ 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() } } }