Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created December 28, 2021 22:05
Show Gist options
  • Save NyaGarcia/e903bfdf6dd7b433723b27f1b60f9c7b to your computer and use it in GitHub Desktop.
Save NyaGarcia/e903bfdf6dd7b433723b27f1b60f9c7b to your computer and use it in GitHub Desktop.
AuthService without types
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