Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- registerEmployeeByEmail(user: User, password: string): Observable<void> {
- return from(this.afAuth.auth.createUserWithEmailAndPassword(user.email, password).then(credentials => {
- user.id = credentials.user.uid;
- this.db.doc(this.dbPath + user.id).set(user);
- }));
- }
Add Comment
Please, Sign In to add comment