@@ -215,11 +215,14 @@ export const SERVER_ERROR_MAP: Partial<ServerErrorMap<ServerError>> = {
215
215
216
216
// Recaptcha related errors.
217
217
[ ServerError . RECAPTCHA_NOT_ENABLED ] : AuthErrorCode . RECAPTCHA_NOT_ENABLED ,
218
- [ ServerError . MISSING_RECAPTCHA_TOKEN ] : AuthErrorCode . INTERNAL_ERROR ,
219
- [ ServerError . INVALID_RECAPTCHA_TOKEN ] : AuthErrorCode . INTERNAL_ERROR ,
220
- [ ServerError . INVALID_RECAPTCHA_ACTION ] : AuthErrorCode . INTERNAL_ERROR ,
221
- [ ServerError . MISSING_CLIENT_TYPE ] : AuthErrorCode . INTERNAL_ERROR ,
222
- [ ServerError . MISSING_RECAPTCHA_VERSION ] : AuthErrorCode . INTERNAL_ERROR ,
223
- [ ServerError . INVALID_RECAPTCHA_VERSION ] : AuthErrorCode . INTERNAL_ERROR ,
224
- [ ServerError . INVALID_REQ_TYPE ] : AuthErrorCode . INTERNAL_ERROR
218
+ [ ServerError . MISSING_RECAPTCHA_TOKEN ] : AuthErrorCode . MISSING_RECAPTCHA_TOKEN ,
219
+ [ ServerError . INVALID_RECAPTCHA_TOKEN ] : AuthErrorCode . INVALID_RECAPTCHA_TOKEN ,
220
+ [ ServerError . INVALID_RECAPTCHA_ACTION ] :
221
+ AuthErrorCode . INVALID_RECAPTCHA_ACTION ,
222
+ [ ServerError . MISSING_CLIENT_TYPE ] : AuthErrorCode . MISSING_CLIENT_TYPE ,
223
+ [ ServerError . MISSING_RECAPTCHA_VERSION ] :
224
+ AuthErrorCode . MISSING_RECAPTCHA_VERSION ,
225
+ [ ServerError . INVALID_RECAPTCHA_VERSION ] :
226
+ AuthErrorCode . INVALID_RECAPTCHA_VERSION ,
227
+ [ ServerError . INVALID_REQ_TYPE ] : AuthErrorCode . INVALID_REQ_TYPE
225
228
} ;
0 commit comments