© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
17 replies
-7he Judge-

Auth.getUser() can not find user in edge function

I'm trying to delete user via
edge function
edge function
, but
auth.getUser()
auth.getUser()
returns
null
null
everytime. I've checked that
req.headers.get("Authorization")
req.headers.get("Authorization")
is correct

Invoking:

    await supabase.functions.invoke("user-self-deletion");
    await supabase.functions.invoke("user-self-deletion");
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

Edge Function getUser user is always null
SupabaseSSupabase / help-and-questions
14mo ago
auth edge function
SupabaseSSupabase / help-and-questions
2w ago
Failing auth in Edge Function
SupabaseSSupabase / help-and-questions
5mo ago
Serving Edge Functions locally, can't find database function
SupabaseSSupabase / help-and-questions
3y ago