UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

14 lines (13 loc) 523 B
import { defineErrorCodes } from "@better-auth/core/utils/error-codes"; //#region src/plugins/captcha/error-codes.ts const EXTERNAL_ERROR_CODES = defineErrorCodes({ VERIFICATION_FAILED: "Captcha verification failed", MISSING_RESPONSE: "Missing CAPTCHA response", UNKNOWN_ERROR: "Something went wrong" }); const INTERNAL_ERROR_CODES = defineErrorCodes({ MISSING_SECRET_KEY: "Missing secret key", SERVICE_UNAVAILABLE: "CAPTCHA service unavailable" }); //#endregion export { EXTERNAL_ERROR_CODES, INTERNAL_ERROR_CODES };