Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 00f44df

Browse files
committed
Add UserCredential to the resolve function in auth.signInWithEmailAndPassword so that it is consistent with the web api.
1 parent 3ba799c commit 00f44df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/auth/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ export module auth {
3939
}).then((user: User) => {
4040
this.currentUser = user;
4141
this.authStateChangedHandler && this.authStateChangedHandler(user);
42-
resolve();
42+
resolve({
43+
additionalUserInfo: user.additionalUserInfo,
44+
credential: null,
45+
operationType: "SignIn",
46+
user: user,
47+
});
4348
}, (err => {
4449
reject({
4550
// code: "",

0 commit comments

Comments
 (0)