Flutter: Create a user

Creates a new user.

Parameters

Examples

With custom user metadata

final res = await supabase.auth.admin.createUser(AdminUserAttributes(
  email: 'user@email.com',
  password: 'password',
  userMetadata: \{'name': 'Yoda'\},
));

Auto-confirm the user's email

final res = await supabase.auth.admin.createUser(AdminUserAttributes(
  email: 'user@email.com',
  emailConfirm: true,
));

Auto-confirm the user's phone number

final res = await supabase.auth.admin.createUser(AdminUserAttributes(
  phone: '1234567890',
  phoneConfirm: true,
));