Skip to content

Commit 645e166

Browse files
authored
[Auth] Fix typo in invalid SMS code error message (#4962)
* Fix typo in invalid SMS code error message * Formatting
1 parent 483e79b commit 645e166

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages-exp/auth-exp/src/api/authentication/mfa.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('api/authentication/finalizeSignInPhoneMfa', () => {
158158

159159
await expect(finalizeSignInPhoneMfa(auth, request)).to.be.rejectedWith(
160160
FirebaseError,
161-
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user. (auth/invalid-verification-code).'
161+
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user. (auth/invalid-verification-code).'
162162
);
163163
expect(mock.calls[0].request).to.eql({
164164
tenantId: null,

packages-exp/auth-exp/src/api/authentication/sms.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('api/authentication/signInWithPhoneNumber', () => {
154154

155155
await expect(signInWithPhoneNumber(auth, request)).to.be.rejectedWith(
156156
FirebaseError,
157-
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user. (auth/invalid-verification-code).'
157+
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user. (auth/invalid-verification-code).'
158158
);
159159
expect(mock.calls[0].request).to.eql(request);
160160
});
@@ -222,7 +222,7 @@ describe('api/authentication/linkWithPhoneNumber', () => {
222222

223223
await expect(linkWithPhoneNumber(auth, request)).to.be.rejectedWith(
224224
FirebaseError,
225-
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user. (auth/invalid-verification-code).'
225+
'Firebase: The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user. (auth/invalid-verification-code).'
226226
);
227227
expect(mock.calls[0].request).to.eql(request);
228228
});

packages-exp/auth-exp/src/core/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function _debugErrorMap(): ErrorMap<AuthErrorCode> {
186186
[AuthErrorCode.INVALID_AUTH_EVENT]: 'An internal AuthError has occurred.',
187187
[AuthErrorCode.INVALID_CODE]:
188188
'The SMS verification code used to create the phone auth credential is ' +
189-
'invalid. Please resend the verification code sms and be sure use the ' +
189+
'invalid. Please resend the verification code sms and be sure to use the ' +
190190
'verification code provided by the user.',
191191
[AuthErrorCode.INVALID_CONTINUE_URI]:
192192
'The continue URL provided in the request is invalid.',

packages/auth/src/error_auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google Inc.
3+
* Copyright 2017 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -280,7 +280,7 @@ fireauth.AuthError.MESSAGES_[fireauth.authenum.Error.INVALID_AUTH_EVENT] =
280280
'An internal error has occurred.';
281281
fireauth.AuthError.MESSAGES_[fireauth.authenum.Error.INVALID_CODE] =
282282
'The SMS verification code used to create the phone auth credential is ' +
283-
'invalid. Please resend the verification code sms and be sure use the ' +
283+
'invalid. Please resend the verification code sms and be sure to use the ' +
284284
'verification code provided by the user.';
285285
fireauth.AuthError.MESSAGES_[fireauth.authenum.Error.INVALID_CONTINUE_URI] =
286286
'The continue URL provided in the request is invalid.';

0 commit comments

Comments
 (0)