UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

17 lines (15 loc) 658 B
import { defineErrorCodes } from "@better-auth/core/utils"; //#region src/plugins/username/error-codes.ts const USERNAME_ERROR_CODES = defineErrorCodes({ 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" }); //#endregion export { USERNAME_ERROR_CODES }; //# sourceMappingURL=error-codes.mjs.map