JavaScript: Retrieve a user

Examples

Fetch the user object using the access_token jwt.

const \{ user, error \} = await supabase.auth.api.getUser(
  'ACCESS_TOKEN_JWT',
)