UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

16 lines (14 loc) 553 B
import { defineErrorCodes } from "@better-auth/core/utils"; //#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 }; //# sourceMappingURL=error-codes.mjs.map