Created
December 28, 2021 22:05
-
-
Save NyaGarcia/e903bfdf6dd7b433723b27f1b60f9c7b to your computer and use it in GitHub Desktop.
AuthService without types
This file contains hidden or 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
import { Auth, signInWithEmailAndPassword } from '@angular/fire/auth'; | |
import { Injectable } from '@angular/core'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class AuthService { | |
constructor(private auth: Auth) {} | |
login({ email, password }: any) { | |
return signInWithEmailAndPassword(this.auth, email, password); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment