© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
louglasdove

Pass auth/session key from JS to python

Hey, I'm knocking together a prototype that uses nuxt on the frontend and python on the backend. I've decided to use supabase to hopefully speed up things - although as I get used to the platform I feel like it's slowing me down, but baby steps and all that. When I make api requests I'm expecting to be able to pass a JWT to the server from the client session, then the server looks up the JWT to get the auth'd user and use that for DB calls etc. I've triend to use the
get_user
get_user
method on python with the
access_token
access_token
from the client, but it's not giving me the session. When I use
set_session
set_session
with both
refresh_token
refresh_token
and
access_token
access_token
it works., but sharing refresh tokens everytime seems like an anti-pattern. Can anyone clarify? 🙏
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

authenticate user from js client, pass token to python api
SupabaseSSupabase / help-and-questions
4y ago
Foreign key from Prisma table to auth.users
SupabaseSSupabase / help-and-questions
4y ago
Auth session missing
SupabaseSSupabase / help-and-questions
11mo ago
Auth Session Missing!
SupabaseSSupabase / help-and-questions
13mo ago