© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
ants

Supabase OAuth (Slack) throws "invalid claim: missing sub claim"

I get a 500 after calling
const { data, error } = await supabase.auth.signInWithOAuth({
  provider: 'slack',
  options: {
    redirectTo: `https://${location.host}/auth/callback`,
  },
})
const { data, error } = await supabase.auth.signInWithOAuth({
  provider: 'slack',
  options: {
    redirectTo: `https://${location.host}/auth/callback`,
  },
})


Supabase also redirects back to
/login
/login
and not to my
redirectTo
redirectTo
path 🤔 The redirectTo is defined in my Authentication config correctly.
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
Sub claim in supabase auth token not working
SupabaseSSupabase / help-and-questions
3y ago
Missing sub claim when try to getUser after setSession
SupabaseSSupabase / help-and-questions
4y ago