Updates user data for a logged in user.
updateUser()
method, the user needs to be signed in first.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',
));