Loading auth state... hangs

We have a magic-link setup with Supabase.

  1. A user gets a link to a form.

  2. A user needs to sign in to get access to the form.

  3. Upon visiting the form page, if the user isn’t signed in, they are redirected to a sign in page

  4. After entering their email into the sign in form, the user gets a link in their email that redirects them to their intended form

  5. The issue is that after the magic link redirects the user to the intended form, navigating away to any other page causes the app to hang on a “Loading auth state…” screen

Posting here while I continue debugging — any pointers appreciated. Thanks in advance!

Relevant links:

Hi @aihe_team, were you able to resolve the issue? It’s difficult for us to debug because you’re using a local host for that project.

If I had to take a guess, maybe there is some state/context that the pages you’re navigating to (from the magic link form) expects, and it is normally provided in a way that doesn’t occur on that form.

1 Like