© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
younessquick

Supabase RPC: auth.uid() context across nested functions?

In Supabase, does auth.uid() remain available in a child function called by an RPC, even when mixing SECURITY INVOKER and SECURITY DEFINER, and in which cases do we actually lose the auth context?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,729Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get auth.uid() in triggered functions?
SupabaseSSupabase / help-and-questions
4y ago
Can't use auth.uid() inside functions
SupabaseSSupabase / help-and-questions
4y ago
auth.uid() question
SupabaseSSupabase / help-and-questions
8mo ago
supabase.auth.getUser and supabase.auth.updateUser across simultaneous server sessions
SupabaseSSupabase / help-and-questions
13mo ago