Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class Auth implements BaseAuth {
  2. final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
  3.  
  4. Future<String> signIn(String email, String password) async {
  5. FirebaseUser user = await _firebaseAuth.signInWithEmailAndPassword(
  6. email: email, password: password);
  7. return user.uid;
  8. }
  9.  
  10. Future<String> signUp(String email, String password) async {
  11. FirebaseUser user = await _firebaseAuth.createUserWithEmailAndPassword(
  12. email: email, password: password);
  13. return user.uid;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement