aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Auth/Source/FIRAuthErrorUtils.h
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2017-09-10 10:05:08 -0700
committerGravatar GitHub <noreply@github.com>2017-09-10 10:05:08 -0700
commitaf23702b560c2c10b54f063817fcd6bca369795e (patch)
tree6d01c384e44dbe7d55994dbdc49898afcbef0f31 /Firebase/Auth/Source/FIRAuthErrorUtils.h
parente27a3072f6287f2cc05762e61f017bd6b506ab58 (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.h17
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