Update a user
Updates user data, if there is a logged in user.
- In order to use the
updateUser()method, the user needs to be signed in first.
- By Default, email updates sends a confirmation link to both the user's current and new email. To only send a confirmation link to the user's new email, disable Secure email change in your project's email auth provider settings.
final UserResponse res = await supabase.auth.updateUser( UserAttributes( email: 'firstname.lastname@example.org', ), ); final User? updatedUser = res.user;