UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

15 lines (14 loc) 771 B
import { defineErrorCodes } from "@better-auth/core/utils/error-codes"; //#region src/plugins/anonymous/error-codes.ts const ANONYMOUS_ERROR_CODES = defineErrorCodes({ INVALID_EMAIL_FORMAT: "Email was not generated in a valid format", FAILED_TO_CREATE_USER: "Failed to create user", COULD_NOT_CREATE_SESSION: "Could not create session", ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously", FAILED_TO_DELETE_ANONYMOUS_USER: "Failed to delete anonymous user", FAILED_TO_DELETE_ANONYMOUS_USER_SESSIONS: "Failed to delete anonymous user sessions", USER_IS_NOT_ANONYMOUS: "User is not anonymous", DELETE_ANONYMOUS_USER_DISABLED: "Deleting anonymous users is disabled" }); //#endregion export { ANONYMOUS_ERROR_CODES };