forked from fullstackreact/react-native-firestack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent crash on error#localizedFailureReason
Fixes fullstackreact#256
- Loading branch information
1 parent
d9babd5
commit ed04e4b
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed04e4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is correct according to https://firebase.google.com/docs/auth/ios/errors. NSLocalizedDescriptionKey (i.e. localizedDescription) is set for all NSError. NSLocalizedFailureReasonErrorKey (i.e. localizedFailureReason) is only set for certain errors and none of the errors for getTokenWithCompletion set it.
I'm convinced we can close out fullstackreact#256 when this gets merged.
ed04e4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also worth noting that this change has already been made in v3