mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(auth): explain why a phone number was rejected (#2480)
This commit is contained in:
1 parent
519b3a6127
commit
8734956d86
122 files changed
+2356
-75
No files matched your search
@@ -261,8 +261,14 @@ export const ErrorCodeToI18nKey = {
|
||||
[APIErrorCodes.PASSKEYS_DISABLED]: 'mfa_and_passkeys.passkeys_disabled',
|
||||
[APIErrorCodes.PHONE_ADD_NOT_ELIGIBLE]: 'phone.add_not_eligible',
|
||||
[APIErrorCodes.PHONE_ALREADY_USED]: 'phone.number_already_used',
|
||||
[APIErrorCodes.PHONE_COUNTRY_NOT_SUPPORTED]: 'phone.country_not_supported',
|
||||
[APIErrorCodes.PHONE_GATE_ESCAPE_UNAVAILABLE]: 'account.phone_gate_escape_unavailable',
|
||||
[APIErrorCodes.PHONE_INBOUND_VERIFICATION_REQUIRED]: 'phone.inbound_verification_required',
|
||||
[APIErrorCodes.PHONE_LOOKUP_UNAVAILABLE]: 'phone.lookup_unavailable',
|
||||
[APIErrorCodes.PHONE_NUMBER_NOT_IN_SERVICE]: 'phone.number_not_in_service',
|
||||
[APIErrorCodes.PHONE_NUMBER_NOT_MOBILE]: 'phone.number_not_mobile',
|
||||
[APIErrorCodes.PHONE_RATE_LIMIT_EXCEEDED]: 'rate_limits.phone_rate_limit_exceeded',
|
||||
[APIErrorCodes.PHONE_VERIFICATION_NEEDS_REVIEW]: 'phone.verification_needs_review',
|
||||
[APIErrorCodes.PHONE_VERIFICATION_REQUIRED]: 'phone.verification_required',
|
||||
[APIErrorCodes.PREMIUM_PURCHASE_BLOCKED]: 'premium_and_plans.no_active_subscription',
|
||||
[APIErrorCodes.PREVIEW_MUST_BE_JPEG]: 'attachments_and_uploads.preview_must_be_jpeg',
|
||||
|
||||
Reference in new issue
Block a user