updateEmail abstract method

Future<User> updateEmail(
  1. String newEmail
)

Update the current user's email address

Changes the email address for the authenticated user. May require re-authentication depending on the provider.

Example:

final user = await authRepo.updateEmail('newemail@example.com');

Implementation

Future<User> updateEmail(String newEmail);