© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
4 replies
Storm

getClaims and typescript

I've been using getSession and saw it's pretty bad for security for my app after I saw the new video for supabase auth. I'm replacing my use of getSession with getClaim but I'm using typescript and had Session imported as a type from @supabase/supabase-js but I can't find anything like that for claims. If I try to use claim.email it causes issues because of the initial state so was wondering if anyone knows where I can import the Claim type
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

getClaims and token refresh
SupabaseSSupabase / help-and-questions
4mo ago
Types and claims from getClaims();
SupabaseSSupabase / help-and-questions
7mo ago
getUser() vs getClaims()
SupabaseSSupabase / help-and-questions
2mo ago
getClaims returning null
SupabaseSSupabase / help-and-questions
4mo ago