UNPKG

@tanosugi/better-auth-utils

Version:

Better Auth Utils

123 lines (122 loc) 8.47 kB
{ "ACCOUNT_NOT_FOUND": "Account not found", "ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY": "Anonymous users cannot sign in again anonymously", "BACKUP_CODES_NOT_ENABLED": "Backup codes aren't enabled", "BANNED_USER": "You have been banned from this application", "COULD_NOT_CREATE_SESSION": "Could not create session", "CREDENTIAL_ACCOUNT_NOT_FOUND": "Credential account not found", "EMAIL_CAN_NOT_BE_UPDATED": "Email can not be updated", "EMAIL_NOT_VERIFIED": "email not verified", "EXPIRES_IN_IS_TOO_LARGE": "The expiresIn is larger than the predefined maximum value.", "EXPIRES_IN_IS_TOO_SMALL": "The expiresIn is smaller than the predefined minimum value.", "FAILED_TO_CREATE_SESSION": "Failed to create session", "FAILED_TO_CREATE_USER": "Failed to create user", "FAILED_TO_GET_SESSION": "Failed to get session", "FAILED_TO_GET_USER_INFO": "Failed to get user info", "FAILED_TO_RETRIEVE_INVITATION": "Failed to retrieve invitation", "FAILED_TO_UNLINK_LAST_ACCOUNT": "You can't unlink your last account", "FAILED_TO_UPDATE_API_KEY": "Failed to update API key", "FAILED_TO_UPDATE_USER": "Failed to update user", "ID_TOKEN_NOT_SUPPORTED": "id_token not supported", "INVALID_API_KEY": "Invalid API key.", "INVALID_API_KEY_GETTER_RETURN_TYPE": "API Key getter returned an invalid key type. Expected string.", "INVALID_BACKUP_CODE": "Invalid backup code", "INVALID_CODE": "Invalid code", "INVALID_EMAIL": "Invalid email", "INVALID_EMAIL_OR_PASSWORD": "Invalid email or password", "INVALID_METADATA_TYPE": "metadata must be an object or undefined", "INVALID_NAME_LENGTH": "The name length is either too large or too small.", "INVALID_OAUTH_CONFIGURATION": "Invalid OAuth configuration", "INVALID_OTP": "Invalid OTP", "INVALID_PASSWORD": "Invalid password", "INVALID_PHONE_NUMBER": "Invalid phone number", "INVALID_PHONE_NUMBER_OR_PASSWORD": "Invalid phone number or password", "INVALID_PREFIX_LENGTH": "The prefix length is either too large or too small.", "INVALID_REMAINING": "The remaining count is either too large or too small.", "INVALID_SESSION_TOKEN": "Invalid session token", "INVALID_TOKEN": "invalid token", "INVALID_TWO_FACTOR_COOKIE": "Invalid two factor cookie", "INVALID_USERNAME": "username is invalid", "INVALID_USERNAME_OR_PASSWORD": "invalid username or password", "INVALID_USER_ID_FROM_API_KEY": "The user id from the API key is invalid.", "INVITATION_LIMIT_REACHED": "Invitation limit reached", "INVITATION_NOT_FOUND": "Invitation not found", "INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION": "Inviter is no longer a member of the organization", "KEY_DISABLED": "API Key is disabled", "KEY_DISABLED_EXPIRATION": "Custom key expiration values are disabled.", "KEY_EXPIRED": "API Key has expired", "KEY_NOT_FOUND": "API Key not found", "KEY_NOT_RECOVERABLE": "API Key is not recoverable", "MEMBER_NOT_FOUND": "Member not found", "METADATA_DISABLED": "Metadata is disabled.", "NO_ACTIVE_ORGANIZATION": "No active organization", "NO_VALUES_TO_UPDATE": "No values to update.", "ORGANIZATION_ALREADY_EXISTS": "Organization already exists", "ORGANIZATION_MEMBERSHIP_LIMIT_REACHED": "Organization membership limit reached", "ORGANIZATION_NOT_FOUND": "Organization not found", "OTP_EXPIRED": "otp expired", "OTP_HAS_EXPIRED": "OTP has expired", "OTP_NOT_ENABLED": "OTP not enabled", "OTP_NOT_FOUND": "OTP not found", "PASSWORD_COMPROMISED": "The password you entered has been compromised. Please choose a different password.", "PASSWORD_TOO_LONG": "Password too long", "PASSWORD_TOO_SHORT": "Password too short", "PHONE_NUMBER_EXIST": "Phone number already exists", "PHONE_NUMBER_NOT_VERIFIED": "Phone number not verified", "PROVIDER_NOT_FOUND": "Provider not found", "RATE_LIMIT_EXCEEDED": "Rate limit exceeded.", "REFILL_AMOUNT_AND_INTERVAL_REQUIRED": "refillAmount is required when refillInterval is provided", "REFILL_INTERVAL_AND_AMOUNT_REQUIRED": "refillInterval is required when refillAmount is provided", "ROLE_NOT_FOUND": "Role not found", "SERVER_ONLY_PROPERTY": "The property you're trying to set can only be set from the server auth instance only.", "SESSION_EXPIRED": "Session expired. Re-authenticate to perform this action.", "SOCIAL_ACCOUNT_ALREADY_LINKED": "Social account already linked", "TEAM_ALREADY_EXISTS": "Team already exists", "TEAM_NOT_FOUND": "Team not found", "TOO_MANY_ATTEMPTS": "Too many attempts", "TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE": "Too many attempts. Please request a new code.", "TOTP_NOT_ENABLED": "TOTP not enabled", "TWO_FACTOR_NOT_ENABLED": "Two factor isn't enabled", "UNABLE_TO_REMOVE_LAST_TEAM": "Unable to remove last team", "UNAUTHORIZED_SESSION": "Unauthorized or invalid session", "UNEXPECTED_ERROR": "Unexpected error", "USAGE_EXCEEDED": "API Key has reached its usage limit", "USERNAME_IS_ALREADY_TAKEN": "username is already taken. please try another.", "USERNAME_TOO_LONG": "username is too long", "USERNAME_TOO_SHORT": "username is too short", "USER_ALREADY_EXISTS": "User already exists", "USER_ALREADY_HAS_PASSWORD": "User already has a password. Provide that to delete the account.", "USER_BANNED": "User is banned", "USER_EMAIL_NOT_FOUND": "User email not found", "USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION": "User is already a member of this organization", "USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION": "User is already invited to this organization", "USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION": "User is not a member of the organization", "USER_NOT_FOUND": "User not found", "YOU_ARE_NOT_ALLOWED_TO_BAN_USERS": "You are not allowed to ban users", "YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION": "You are not allowed to cancel this invitation", "YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE": "You are not allowed to change users role", "YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION": "You are not allowed to create a new organization", "YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM": "You are not allowed to create a new team", "YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION": "You are not allowed to create teams in this organization", "YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS": "You are not allowed to create users", "YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION": "You are not allowed to delete teams in this organization", "YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER": "You are not allowed to delete this member", "YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION": "You are not allowed to delete this organization", "YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM": "You are not allowed to delete this team", "YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS": "You are not allowed to delete users", "YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS": "You are not allowed to impersonate users", "YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION": "You are not allowed to invite users to this organization", "YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE": "you are not allowed to invite user with this role", "YOU_ARE_NOT_ALLOWED_TO_LIST_USERS": "You are not allowed to list users", "YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS": "You are not allowed to list users sessions", "YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS": "You are not allowed to revoke users sessions", "YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD": "You are not allowed to set users password", "YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER": "You are not allowed to update this member", "YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION": "You are not allowed to update this organization", "YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM": "You are not allowed to update this team", "YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION": "You are not the recipient of the invitation", "YOU_CANNOT_BAN_YOURSELF": "You cannot ban yourself", "YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER": "You cannot leave the organization as the only owner", "YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS": "You have reached the maximum number of organizations", "YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS": "You have reached the maximum number of teams" }