better-auth
Version:
The most comprehensive authentication framework for TypeScript.
1 lines • 826 B
Source Map (JSON)
{"version":3,"file":"error-codes.mjs","names":[],"sources":["../../../src/plugins/captcha/error-codes.ts"],"sourcesContent":["// These error codes are returned by the API\nimport { defineErrorCodes } from \"@better-auth/core/utils\";\n\nexport const EXTERNAL_ERROR_CODES = defineErrorCodes({\n\tVERIFICATION_FAILED: \"Captcha verification failed\",\n\tMISSING_RESPONSE: \"Missing CAPTCHA response\",\n\tUNKNOWN_ERROR: \"Something went wrong\",\n});\n\n// These error codes are only visible in the server logs\nexport const INTERNAL_ERROR_CODES = defineErrorCodes({\n\tMISSING_SECRET_KEY: \"Missing secret key\",\n\tSERVICE_UNAVAILABLE: \"CAPTCHA service unavailable\",\n});\n"],"mappings":";;;AAGA,MAAa,uBAAuB,iBAAiB;CACpD,qBAAqB;CACrB,kBAAkB;CAClB,eAAe;CACf,CAAC;AAGF,MAAa,uBAAuB,iBAAiB;CACpD,oBAAoB;CACpB,qBAAqB;CACrB,CAAC"}