https://supabase.com/docs/reference/javascript/aut...
# python
n
m
Hi @nitehawk, Please note that Python wrappers are made by the community and not officially supported. So, sometimes you'll have to take a look at their code to understand what is happening there. https://github.com/supabase-community/gotrue-py This code:
Copy code
const { user, error } = await supabase.auth.api.getUser(
  'ACCESS_TOKEN_JWT',
)
Would be the same as
Copy code
client.user()
Assuming the client was already created/user logged in. The error won't be returned as in the JavaScript, but raised if/when it happens.
nitehawk (2022-05-30)
n
Thanks, I ended up doing an API call manually since I couldn't find that in the code, I'll see if I can simplify it that way