Updates user data for a logged in user.
updateUser()
method, the user needs to be signed in first.Attributes to update for the user.
The URI to redirect the user to after the email is updated.
final UserResponse res = await supabase.auth.updateUser(
UserAttributes(
email: 'example@email.com',
),
);
final User? updatedUser = res.user;
final UserResponse res = await supabase.auth.updateUser(
UserAttributes(
password: 'new password',
),
);
final User? updatedUser = res.user;
final UserResponse res = await supabase.auth.updateUser(
UserAttributes(
data: \{ 'hello': 'world' \},
),
);
final User? updatedUser = res.user;
supabase.auth.updateUser(UserAttributes(
email: 'example@email.com',
nonce: '123456',
));