jbergius
11/17/2021, 2:28 PMsupabase.auth.onAuthStateChange
not firing sometimes after a users clicks on a confirmation link, which makes my NextJS app not setting the authCookie correctly, causing the user to be redirected back to the sign in page. Anyone else came across this issue?
1. The user clicks on the confirmation link in the email
2. The user comes to my specified redirectUrl.
3. The onAuthStateChange-function, which lives in a context called useUser is not being fired at all, as I can't see the console.log(event)
firing at all.
4. The user goes to a different page, which has a getServerSideProps-function that checks if user exists on the server. If not, it redirects the user to the signin pagechipilov
11/17/2021, 2:55 PMchipilov
11/17/2021, 2:56 PMjbergius
11/17/2021, 3:03 PMsilentworks
11/17/2021, 4:26 PMjbergius
11/17/2021, 7:03 PMjbergius
11/17/2021, 7:04 PM