mirror of
https://github.com/beilunyang/moemail.git
synced 2026-06-02 22:20:14 +08:00
feat(turnstile): integrate Cloudflare Turnstile for enhanced security in login and registration processes
This commit is contained in:
10
types.d.ts
vendored
10
types.d.ts
vendored
@@ -7,6 +7,14 @@ declare global {
|
||||
SITE_CONFIG: KVNamespace;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
turnstile?: {
|
||||
render: (element: HTMLElement | string, options: Record<string, unknown>) => string
|
||||
reset: (widgetId?: string) => void
|
||||
remove: (widgetId: string) => void
|
||||
}
|
||||
}
|
||||
|
||||
type Env = CloudflareEnv
|
||||
}
|
||||
|
||||
@@ -21,4 +29,4 @@ declare module "next-auth" {
|
||||
}
|
||||
}
|
||||
|
||||
export type { Env }
|
||||
export type { Env }
|
||||
|
||||
Reference in New Issue
Block a user