JavaScript: Retrieve a user

Get user by id.

Parameters

Examples

Fetch the user object using the access_token jwt

const \{ data, error \} = await supabase.auth.admin.getUserById(1)