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

Commit 23cb646

Browse files
Getting an error on login with invalid user id #725
1 parent 9350dd4 commit 23cb646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/firebase.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ firebase.login = arg => {
11901190
};
11911191

11921192
const onCompletionWithAuthResult = (authResult: FIRAuthDataResult, error?: NSError) => {
1193-
onCompletionWithUser(authResult.user, error);
1193+
onCompletionWithUser(authResult && authResult.user, error);
11941194
};
11951195

11961196
const fAuth = FIRAuth.auth();

0 commit comments

Comments
 (0)