Skip to content

Commit 0975ffc

Browse files
committed
changed error code
1 parent ef582f4 commit 0975ffc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/auth/src/core/errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ function _debugErrorMap(): ErrorMap<AuthErrorCode> {
382382
[AuthErrorCode.INVALID_REQ_TYPE]: 'Invalid request parameters.',
383383
[AuthErrorCode.INVALID_RECAPTCHA_VERSION]:
384384
'The reCAPTCHA version sent to the backend is invalid.',
385-
[AuthErrorCode.WEB_OTP_NOT_RETRIEVED]: 'WEB OTP autofill failed'
385+
[AuthErrorCode.WEB_OTP_NOT_RETRIEVED]:
386+
'Web OTP code is not retrieved successfully',
386387
};
387388
}
388389

packages/auth/src/platform_browser/strategies/phone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ConfirmationResultImpl implements ConfirmationResult {
115115
const myErr = _errorWithCustomMessage(
116116
auth,
117117
AuthErrorCode.WEB_OTP_NOT_RETRIEVED,
118-
`Web OTP code is not valid`
118+
`the auto-retrieved credential or code is not defined`,
119119
) as WebOTPError;
120120
myErr.confirmationResult = this;
121121
throw myErr;

0 commit comments

Comments
 (0)