© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
11 replies
bl

Access token in Supabase Webhooks

I need to call an endpoint when a new user is created <=> a new row is inserted in public.users. Supabase Webhooks are perfect for this.

However, I need the send the access token of that new user, is there a built-in function in Postgres (like uid() for id)?

EDIT:
Such a function might not exist, no function to directly get the access token jwt. Please correct me if I’m wrong, but, when creating Webhooks, devs maybe thought it would be better to just send user’s id — Bearer auth.uid()  — and authenticate the user on the server with getUserById()… which would be very risky.
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

Limited Permissions for Supabase Access Token in CI
SupabaseSSupabase / help-and-questions
3mo ago
sb-access-token,sb-refresh-token VS supabase-auth-token?
SupabaseSSupabase / help-and-questions
4y ago
How to refresh access token using refresh token in supabase c# api?
SupabaseSSupabase / help-and-questions
4mo ago
Access Token from Google OAuth to supabase?
SupabaseSSupabase / help-and-questions
3y ago