Skip to content

Commit c5b31c5

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SupabaseClient.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,12 @@ 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
}
345+
console.log(event)
344346
}
345347
}

0 commit comments

Comments
 (0)