diff options
author | 2017-09-10 10:05:08 -0700 | |
---|---|---|
committer | 2017-09-10 10:05:08 -0700 | |
commit | af23702b560c2c10b54f063817fcd6bca369795e (patch) | |
tree | 6d01c384e44dbe7d55994dbdc49898afcbef0f31 /Firebase/Auth/Source/FIRAuthErrorUtils.h | |
parent | e27a3072f6287f2cc05762e61f017bd6b506ab58 (diff) |
ReCAPTCHA verification error handling (#241)
* reCAPTCHA error handling
* Improvements
* Addresses comments
Diffstat (limited to 'Firebase/Auth/Source/FIRAuthErrorUtils.h')
-rw-r--r-- | Firebase/Auth/Source/FIRAuthErrorUtils.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Firebase/Auth/Source/FIRAuthErrorUtils.h b/Firebase/Auth/Source/FIRAuthErrorUtils.h index 1537553..af4ee28 100644 --- a/Firebase/Auth/Source/FIRAuthErrorUtils.h +++ b/Firebase/Auth/Source/FIRAuthErrorUtils.h @@ -460,12 +460,27 @@ NS_ASSUME_NONNULL_BEGIN + (NSError *)webContextAlreadyPresentedErrorWithMessage:(nullable NSString *)message; /** @fn webContextCancelledErrorWithMessage: - @brief Constructs an @c NSError with the @c FIRAuthErrorCodeWebContextCancelledcode. + @brief Constructs an @c NSError with the @c FIRAuthErrorCodeWebContextCancelled code. @param message Error message from the backend, if any. @return The NSError instance associated with the given FIRAuthError. */ + (NSError *)webContextCancelledErrorWithMessage:(nullable NSString *)message; +/** @fn appVerificationUserInteractionFailureWithReason: + @brief Constructs an @c NSError with the @c + FIRAuthErrorCodeAppVerificationUserInteractionFailure code. + @param reason Reason for error, returned via URL response. + @return The NSError instance associated with the given FIRAuthError. + */ ++ (NSError *)appVerificationUserInteractionFailureWithReason:(nullable NSString *)reason; + +/** @fn URLResponseErrorWithCode:message: + @brief Constructs an @c NSError with the code and message provided. + @param message Error message from the backend, if any. + @return The nullable NSError instance associated with the given error message, if one is found. + */ ++ (NSError *)URLResponseErrorWithCode:(NSString *)code message:(nullable NSString *)message; + /** @fn keychainErrorWithFunction:status: @brief Constructs an @c NSError with the @c FIRAuthErrorCodeKeychainError code. @param keychainFunction The keychain function which was invoked and yielded an unexpected |