© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
1 reply
Borislav Borisov

400 - AuthSessionMissingError: Auth session missing

I've set up my app to support 4 oauth providers and a password-less login. I've followed the tutorial for the next js app router, set up the middleware and my private layout, and whenever i login, supabase responds with 302 redirect, a user actually gets created if i log in with a new email, but in my private layout, the .getUser function returns a 400 AuthSessionMIssingError and the user gets redirected back to /auth/signin. I'd be happy to provide some code snippets.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Auth session missing
SupabaseSSupabase / help-and-questions
11mo ago
Auth Session Missing!
SupabaseSSupabase / help-and-questions
13mo ago
Error: "Auth Session Missing", anyone?
SupabaseSSupabase / help-and-questions
6mo ago
Debugging adventures: auth session missing
SupabaseSSupabase / help-and-questions
2y ago