Skip to content

Commit 360b75f

Browse files
committed
fix: Realtime set auth on handleTokenChanged
1 parent 7a2ba52 commit 360b75f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SupabaseClient.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,11 @@ export default class SupabaseClient<
336336
this.changedAccessToken !== token
337337
) {
338338
this.changedAccessToken = token
339-
} else if (event === 'SIGNED_OUT') {
340339
this.realtime.setAuth()
340+
} else if (event === 'SIGNED_OUT') {
341341
if (source == 'STORAGE') this.auth.signOut()
342342
this.changedAccessToken = undefined
343+
this.realtime.setAuth()
343344
}
344345
}
345346
}

0 commit comments

Comments
 (0)