Advertisement
Guest User

Untitled

a guest
Apr 5th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // ...
  2. class Firebase() {
  3. // ...
  4.  
  5. handleCreateUser = (email, password) => this.auth.createUserWithEmailAndPassword(email, password);
  6.  
  7. handleLogin = (email, password) => this.auth.signInWithEmailAndPassword(email, password);
  8.  
  9. handleLogout = () => this.auth.signOut();
  10.  
  11. handleRecoverPassword = (email) => this.auth.sendPasswordResetEmail(email);
  12.  
  13. handleChangePassword = (password) => this.auth.updatePassword(password);
  14.  
  15. };
  16.  
  17. export default Firebase;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement