updateEmail abstract method
Future<String>
updateEmail({
- required String email,
- required String loginId,
- required String refreshJwt,
- UpdateOptions? options,
Updates an existing user by adding an email address.
The email will be updated for the user identified by loginId
after it is verified via OTP. In order to do this, the user must
have an active DescopeSession whose refreshJwt should be
passed as a parameter to this function.
You can optionally pass the options parameter to add the new email address
as a loginId for the updated user, and to determine how to resolve conflicts
if another user already exists with the same loginId. See the documentation
for UpdateOptions for more details.
Implementation
Future<String> updateEmail({required String email, required String loginId, required String refreshJwt, UpdateOptions? options});