UNPKG

@nuxtjs/turnstile

Version:

Cloudflare Turnstile integration for Nuxt

20 lines (17 loc) 643 B
import * as _nuxt_schema from '@nuxt/schema'; interface ModuleOptions { /** It is recommended you set the secret key via `runtimeConfig.turnstile.secretKey` or NUXT_TURNSTILE_SECRETKEY */ secretKey?: string; /** Path to a file containing the secret key. */ secretKeyPath?: string; /** Your Turnstile site key */ siteKey?: string; /** * Add a nitro endpoint at `/_turnstile/validate` to validate tokens. * @default {false} */ addValidateEndpoint?: boolean; } declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>; export = _default; export type { ModuleOptions };