Your Supabase auth call fails with:
AuthSessionMissingError: Auth session missing!
Enter fullscreen mode
Exit fullscreen mode
It usually appears on getUser() , updateUser() or signOut() , often right after a page load or on the server. Here is what it means and the safe fix.
What it means
These calls need a signed-in session to act on. The client looked for a session (an access token and refresh token) in its storage, found none, and refused. It is not a bad password or an expired token. There is simply no session where the client looked.
The 5 usual causes
No one is signed in yet. The call runs before login, or after the user signed out.
Server code cannot see the browser's session. In SSR frameworks the session lives in cookies. If your server client is not wired to read them, it sees nothing.
Different storage.…