Python: Retrieve a user | Supabase Docs (original) (raw)

Parameters

(Optional)
Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.

Examples

Get the logged in user with the current existing session

response = supabase.auth.get_user()

Get the logged in user with a custom access token jwt

response = supabase.auth.get_user(jwt)