Skip to content

Commit 1afc88e

Browse files
jonsimantova-maurice
authored andcommitted
The QUOTA_EXCEEDED error is not just for SMS quota, but applies to all
quota. Fix the error text on desktop (and in our docs) to reflect that. PiperOrigin-RevId: 315024807
1 parent ddd03e5 commit 1afc88e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

auth/src/desktop/rpcs/error_codes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static const struct ErrorCodeToDescription {
153153
{kAuthErrorMissingEmail, "An email address must be provided."},
154154
{kAuthErrorMissingPassword, "A password must be provided."},
155155
{kAuthErrorQuotaExceeded,
156-
"The sms quota for this project has been exceeded."},
156+
"The project's quota for this operation has been exceeded."},
157157
{kAuthErrorSessionExpired,
158158
"The sms code has expired. Please re-send the verification code to try "
159159
"again."},

auth/src/include/firebase/auth/types.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ enum AuthError {
212212
/// @note This error is only reported on Android.
213213
kAuthErrorMissingPassword,
214214

215-
/// Indicates that the quota of SMS messages for a given project has been
216-
/// exceeded.
215+
/// Indicates that the project's quota for this operation (SMS messages,
216+
/// sign-ins, account creation) has been exceeded. Try again later.
217217
kAuthErrorQuotaExceeded,
218218

219219
/// Thrown when one or more of the credentials passed to a method fail to
@@ -440,7 +440,7 @@ struct FederatedOAuthProviderData : FederatedProviderData {
440440
this->provider_id = provider;
441441
}
442442

443-
#ifndef SWIG
443+
#ifndef SWIG
444444
/// @brief Initializes the provider data structure with the specified provider
445445
/// id, scopes and custom parameters.
446446
FederatedOAuthProviderData(
@@ -450,7 +450,7 @@ struct FederatedOAuthProviderData : FederatedProviderData {
450450
this->scopes = scopes;
451451
this->custom_parameters = custom_parameters;
452452
}
453-
#endif
453+
#endif
454454

455455
/// OAuth parmeters which specify which rights of access are being requested.
456456
std::vector<std::string> scopes;

0 commit comments

Comments
 (0)