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

Method emailSignUp

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

Source from the content-addressed store, hash-verified

97 //// Email/Password Auth ////
98
99 emailSignUp(email:string, password:string) {
100 return this.afAuth.auth.createUserWithEmailAndPassword(email, password)
101 .then((user) => {
102 this.authState = user
103 this.updateUserData()
104 })
105 .catch(error => console.log(error));
106 }
107
108 emailLogin(email:string, password:string) {
109 return this.afAuth.auth.signInWithEmailAndPassword(email, password)

Callers 1

signupMethod · 0.80

Calls 1

updateUserDataMethod · 0.95

Tested by

no test coverage detected