Create a user
Creates a new user.
- To confirm the user's email address or phone number, set
email_confirm
orphone_confirm
to true. Both arguments default to false. createUser()
will not send a confirmation email to the user. You can useinviteUserByEmail()
if you want to send them an email invite instead.- If you are sure that the created user's email or phone number is legitimate and verified, you can set the
email_confirm
orphone_confirm
param totrue
.
final res = await supabase.auth.admin.createUser(AdminUserAttributes(
email: 'user@email.com',
password: 'password',
userMetadata: {'name': 'Yoda'},
));