Skip to content

Instantly share code, notes, and snippets.

@md-weber
Created May 2, 2020 13:38
Show Gist options
  • Save md-weber/e388b14a06972acba2739ad68a3462ec to your computer and use it in GitHub Desktop.
Save md-weber/e388b14a06972acba2739ad68a3462ec to your computer and use it in GitHub Desktop.
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