Skip to content

Commit bb8d57e

Browse files
committed
added comments to note customized error msg
1 parent 0975ffc commit bb8d57e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/auth/src/core/errors.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,15 @@ function _debugErrorMap(): ErrorMap<AuthErrorCode> {
384384
'The reCAPTCHA version sent to the backend is invalid.',
385385
[AuthErrorCode.WEB_OTP_NOT_RETRIEVED]:
386386
'Web OTP code is not retrieved successfully',
387+
/**
388+
* This is the default error message.
389+
* This message is customized to one of the following depending on the type of error:
390+
* `Web OTP code is not fetched before timeout`
391+
* `The auto-retrieved credential or code is not defined`
392+
* `Web OTP get method failed to retrieve the code`
393+
* `Web OTP code received is incorrect`
394+
* `Web OTP is not supported`
395+
*/
387396
};
388397
}
389398

0 commit comments

Comments
 (0)