Created
May 2, 2020 13:40
-
-
Save md-weber/f41d879fb4a1cf7f24386e8815078c80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<void> verifyEmail() async { | |
var firebaseUser = await _auth.currentUser(); | |
// Initiates email verification for the user. | |
firebaseUser.sendEmailVerification(); | |
// Returns true if the user's email is verified. | |
if(firebaseUser.isEmailVerified){ | |
// email is verified | |
} else{ | |
// email is not verified | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment