diff options
author | Ivan <gonzalezivan@google.com> | 2017-10-23 13:46:46 -0700 |
---|---|---|
committer | Ivan <gonzalezivan@google.com> | 2017-10-23 13:46:46 -0700 |
commit | 13d59e3067b3fdb8a944eb1b828cd455a4f452af (patch) | |
tree | aaae6385f5f8f209891f37bfef649e9a75f9fa05 /Firebase/Auth | |
parent | 4cf46e4123b91a29b1bd8749e3717aa33243bc66 (diff) |
handles unstructured errors on redirect URLs
Diffstat (limited to 'Firebase/Auth')
-rw-r--r-- | Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m b/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m index 1242707..fd5dcbe 100644 --- a/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m +++ b/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m @@ -267,7 +267,8 @@ NSString *const kReCAPTCHAURLStringFormat = @"https://%@/__/auth/handler?%@"; if(errorDict[@"code"] && errorDict[@"message"]) { reason = [NSString stringWithFormat:@"[%@] - %@",errorDict[@"code"], errorDict[@"message"]]; } else { - reason = @"An unknown error has occurred"; + reason = [NSString StringWithFormat:@"An unknown error occurred with the following " + "response: %@", deepLinkURL]; } *error = [FIRAuthErrorUtils appVerificationUserInteractionFailureWithReason:reason]; } |