Flutter: Retrieve a user

Get user by id.

Parameters

Examples

Fetch the user object using the access_token jwt

final res = await supabase.auth.admin.getUserById(userId);
final user = res.user;