better-auth
Version:
The most comprehensive authentication framework for TypeScript.
27 lines (26 loc) • 1.23 kB
text/typescript
import { BaseCaptchaOptions, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider } from "./types.mjs";
import * as _$_better_auth_core0 from "@better-auth/core";
import * as _$_better_auth_core_utils_error_codes0 from "@better-auth/core/utils/error-codes";
//#region src/plugins/captcha/index.d.ts
declare module "@better-auth/core" {
interface BetterAuthPluginRegistry<AuthOptions, Options> {
captcha: {
creator: typeof captcha;
};
}
}
declare const captcha: (options: CaptchaOptions) => {
id: "captcha";
version: string;
$ERROR_CODES: {
VERIFICATION_FAILED: _$_better_auth_core_utils_error_codes0.RawError<"VERIFICATION_FAILED">;
MISSING_RESPONSE: _$_better_auth_core_utils_error_codes0.RawError<"MISSING_RESPONSE">;
UNKNOWN_ERROR: _$_better_auth_core_utils_error_codes0.RawError<"UNKNOWN_ERROR">;
};
onRequest: (request: Request, ctx: _$_better_auth_core0.AuthContext) => Promise<{
response: Response;
} | undefined>;
options: CaptchaOptions;
};
//#endregion
export { BaseCaptchaOptions, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider, captcha };