Created
May 2, 2020 13:38
-
-
Save md-weber/e388b14a06972acba2739ad68a3462ec 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(String password) 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