© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
Damian

Missing sub claim when try to getUser after setSession

Hey, i try to access logged in user details by use function getUser(), but all the times i get
invalid claim: missing sub claim
invalid claim: missing sub claim
. When i use console.log on setSession there are active user details information. I try set persistSession from this thread (AuthApiError using supabase-js from node) to false but this bug still effect.
image.png
image.png
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

401: invalid claim: missing sub claim
SupabaseSSupabase / help-and-questions
3y ago
Signup from API: 401: invalid claim: missing sub claim
SupabaseSSupabase / help-and-questions
3y ago
Supabase OAuth (Slack) throws "invalid claim: missing sub claim"
SupabaseSSupabase / help-and-questions
3y ago
JS Client Error 'AuthSessionMissingError' when using setSession()
SupabaseSSupabase / help-and-questions
4y ago