© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
Lou | XBorg

JWT auth - session undefined

Hi there,

I am trying to authenticate the user with a JWT. while it used to work with setAuth in v1, I can't seem to authenticate the user with the global authorization header in v2.

I pass my JWT in the headers, yet, no session get instantiated. getSession return null.

When I call client.auth.getUser(token), it returns 500 internal server error. error_id: "aaa46750-3dcb-4f7d-8871-283d4e452dbf"

I assume that there is an issue in the way I set my session.

Where is the latest documentation on setting up sessions with custom JWTs?
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
electron auth session persistence
SupabaseSSupabase / help-and-questions
5mo ago
Help for session/auth
SupabaseSSupabase / help-and-questions
6mo ago