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 method on python with the
access_token
from the client, but it's not giving me the session. When I use set_session with both
refresh_token
and
access_token
it works., but sharing refresh tokens everytime seems like an anti-pattern. Can anyone clarify? 🙏
Was this page helpful?