#34 most commonauthLovableBolt.newCursorWindsurfv0

Auth session missing / JWT expired / Invalid Refresh Token

AuthSessionMissingError: Auth session missing! / JWT expired / AuthApiError: Invalid Refresh Token: Refresh Token Not Found

Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.

Paste your error →

What it means

The app forgot who's logged in, or the login pass it was holding expired and couldn't be renewed. Users suddenly appear logged out or requests fail.

How to fix it: paste this prompt into your AI builder

Fix prompt for Lovable, Bolt, Cursor, v0, Windsurf
I get "Auth session missing / JWT expired / Invalid Refresh Token". Make sure there is exactly one Supabase client instance, sessions are persisted and auto-refreshed, data requests wait until the session is loaded (use onAuthStateChange / getSession before fetching), and in Next.js the @supabase/ssr middleware refreshes cookies. On an invalid refresh token, sign the user out cleanly and send them to login. Don't change unrelated features.

If the AI can't fix it: manual steps

  1. Clear the site's local storage/cookies and log in again to test.

Where this happens

Seen in these AI app builders and editors:

LovableBolt.newCursorWindsurfv0

Sources

Related auth errors

Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.

Fix my error →