Peter Hase
01/31/2022, 9:15 AMsilentworks
01/31/2022, 9:54 AMPeter Hase
01/31/2022, 10:12 AMonAuthStateChange
as seen in supabaseAuth.tsx
in the gist https://gist.github.com/PedroHase/4be266793731879210fec284ac02f4b9
However, I did tinker around and had a second onAuthStateChange
for a split second similar to https://dev.to/sruhleder/protected-routes-with-supabase-and-nextjs-381k, but I have removed it shortly after. Could it be that the listener is still active, or that there may be some conflict?Peter Hase
01/31/2022, 10:13 AMsilentworks
01/31/2022, 11:17 AMPeter Hase
01/31/2022, 12:51 PMonAuthStateChange
. Interestingly when I try it with another browser (e.g. Firefox) it works again. Could it be that the subscriber is not unsubscribing correctly in https://gist.github.com/PedroHase/4be266793731879210fec284ac02f4b9#file-supabaseauth-tsx-L50-L53 ?silentworks
01/31/2022, 1:45 PM