mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 16:36:34 -05:00
Merge remote-tracking branch 'origin/canary'
This commit is contained in:
@@ -16,7 +16,7 @@ export const BASE_ERROR_CODES = {
|
||||
EMAIL_NOT_VERIFIED: "Email not verified",
|
||||
PASSWORD_TOO_SHORT: "Password too short",
|
||||
PASSWORD_TOO_LONG: "Password too long",
|
||||
USER_ALREADY_EXISTS: "User already exists",
|
||||
USER_ALREADY_EXISTS: "User already exists. Use another email.",
|
||||
EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated",
|
||||
CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found",
|
||||
SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const ADMIN_ERROR_CODES = {
|
||||
FAILED_TO_CREATE_USER: "Failed to create user",
|
||||
USER_ALREADY_EXISTS: "User already exists",
|
||||
USER_ALREADY_EXISTS: "User already exists. Use another email.",
|
||||
YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself",
|
||||
YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:
|
||||
"You are not allowed to change users role",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
export const USERNAME_ERROR_CODES = {
|
||||
INVALID_USERNAME_OR_PASSWORD: "invalid username or password",
|
||||
EMAIL_NOT_VERIFIED: "email not verified",
|
||||
UNEXPECTED_ERROR: "unexpected error",
|
||||
USERNAME_IS_ALREADY_TAKEN: "username is already taken. please try another.",
|
||||
USERNAME_TOO_SHORT: "username is too short",
|
||||
USERNAME_TOO_LONG: "username is too long",
|
||||
INVALID_USERNAME: "username is invalid",
|
||||
INVALID_DISPLAY_USERNAME: "display username is invalid",
|
||||
INVALID_USERNAME_OR_PASSWORD: "Invalid username or password",
|
||||
EMAIL_NOT_VERIFIED: "Email not verified",
|
||||
UNEXPECTED_ERROR: "Unexpected error",
|
||||
USERNAME_IS_ALREADY_TAKEN: "Username is already taken. Please try another.",
|
||||
USERNAME_TOO_SHORT: "Username is too short",
|
||||
USERNAME_TOO_LONG: "Username is too long",
|
||||
INVALID_USERNAME: "Username is invalid",
|
||||
INVALID_DISPLAY_USERNAME: "Display username is invalid",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user