better-auth
Version:
The most comprehensive authentication framework for TypeScript.
1 lines • 1.13 kB
Source Map (JSON)
{"version":3,"file":"constants.mjs","names":["siteVerifyMap: Record<Provider, string>"],"sources":["../../../src/plugins/captcha/constants.ts"],"sourcesContent":["import type { Provider } from \"./types\";\n\nexport const defaultEndpoints = [\n\t\"/sign-up/email\",\n\t\"/sign-in/email\",\n\t\"/request-password-reset\",\n];\n\nexport const Providers = {\n\tCLOUDFLARE_TURNSTILE: \"cloudflare-turnstile\",\n\tGOOGLE_RECAPTCHA: \"google-recaptcha\",\n\tHCAPTCHA: \"hcaptcha\",\n\tCAPTCHAFOX: \"captchafox\",\n} as const;\n\nexport const siteVerifyMap: Record<Provider, string> = {\n\t[Providers.CLOUDFLARE_TURNSTILE]:\n\t\t\"https://challenges.cloudflare.com/turnstile/v0/siteverify\",\n\t[Providers.GOOGLE_RECAPTCHA]:\n\t\t\"https://www.google.com/recaptcha/api/siteverify\",\n\t[Providers.HCAPTCHA]: \"https://api.hcaptcha.com/siteverify\",\n\t[Providers.CAPTCHAFOX]: \"https://api.captchafox.com/siteverify\",\n};\n"],"mappings":";AAEA,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;AAED,MAAa,YAAY;CACxB,sBAAsB;CACtB,kBAAkB;CAClB,UAAU;CACV,YAAY;CACZ;AAED,MAAaA,gBAA0C;EACrD,UAAU,uBACV;EACA,UAAU,mBACV;EACA,UAAU,WAAW;EACrB,UAAU,aAAa;CACxB"}