Last active
April 7, 2020 07:24
-
-
Save sirateek/96e811cc9881bc5206e251531ff774d9 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<bool> registerWithEmail( | |
{@required email, @required password, @required repassword}) { | |
final FirebaseAuth _auth = FirebaseAuth.instance; | |
return _auth | |
.createUserWithEmailAndPassword(email: email, password: password) | |
.then((data) { | |
print("Registation Success"); | |
print(data.user.uid); | |
return true; | |
}).catchError((e) { | |
print("Error: " + e); | |
return false; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment