MCPcopy Create free account
hub / github.com/codediodeio/angular-firestarter / emailLogin

Method emailLogin

src/app/core/auth.service.ts:108–115  ·  view source on GitHub ↗
(email:string, password:string)

Source from the content-addressed store, hash-verified

106 }
107
108 emailLogin(email:string, password:string) {
109 return this.afAuth.auth.signInWithEmailAndPassword(email, password)
110 .then((user) => {
111 this.authState = user
112 this.updateUserData()
113 })
114 .catch(error => console.log(error));
115 }
116
117 // Sends email allowing user to reset password
118 resetPassword(email: string) {

Callers 1

loginMethod · 0.80

Calls 1

updateUserDataMethod · 0.95

Tested by

no test coverage detected