File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ static const ErrorCodeMapping kFirebaseAuthCodes[] = {
99
99
{" ERROR_INVALID_TENANT_ID" , kAuthErrorInvalidTenantId },
100
100
{" ERROR_INVALID_DYNAMIC_LINK_DOMAIN" , kAuthErrorInvalidLinkDomain },
101
101
{" ERROR_TENANT_ID_MISMATCH" , kAuthErrorTenantIdMismatch },
102
+ {" ERROR_MISSING_CLIENT_IDENTIFIER" , kAuthErrorMissingClientIdentifier },
102
103
{nullptr },
103
104
};
104
105
// NOTE: THIS IS WHERE IT GETS REALLY DODGY
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ static const BackendErrorToCode kBackendErrorsToErrorCodeMap[] = {
65
65
{" QUOTA_EXCEEDED" , kAuthErrorQuotaExceeded },
66
66
{" SESSION_EXPIRED" , kAuthErrorSessionExpired },
67
67
{" INVALID_APP_CREDENTIAL" , kAuthErrorAppNotAuthorized },
68
+ {" MISSING_CLIENT_IDENTIFIER" , kAuthErrorMissingClientIdentifier },
68
69
};
69
70
70
71
static const struct ErrorCodeToDescription {
@@ -171,7 +172,8 @@ static const struct ErrorCodeToDescription {
171
172
" The requested provider ID is invalid. You must enable this provider in "
172
173
" the console." },
173
174
{kAuthErrorFailure , " An internal error has occurred." },
174
- };
175
+ {kAuthErrorMissingClientIdentifier ,
176
+ " This request is missing a reCAPTCHA token." }};
175
177
176
178
} // namespace
177
179
Original file line number Diff line number Diff line change @@ -344,6 +344,10 @@ enum AuthError {
344
344
// / Indicates that a request was made to the backend with an invalid tenant
345
345
// / ID.
346
346
kAuthErrorInvalidTenantId ,
347
+
348
+ // / Indicates that a request was made to the backend without a valid client
349
+ // / identifier.
350
+ kAuthErrorMissingClientIdentifier ,
347
351
};
348
352
349
353
} // namespace auth
Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ @implementation FIRCPPAuthListenerHandle
97
97
{FIRAuthErrorCodeWebContextCancelled, kAuthErrorWebContextCancelled },
98
98
{FIRAuthErrorCodeWrongPassword, kAuthErrorWrongPassword },
99
99
{FIRAuthErrorCodeInvalidProviderID, kAuthErrorInvalidProviderId },
100
+ // TODO(b/137141080): Handle New Thick Client Error
101
+ // Uncomment once support for MISSING_CLIENT_IDENTIFIER is added to the iOS SDK.
102
+ // {FIRAuthErrorCodeMissingClientIdentifier, kAuthErrorMissingClientIdentifier},
100
103
};
101
104
102
105
template <typename T>
You can’t perform that action at this time.
0 commit comments