@clerk/clerk-js
Version:
Clerk JS library
18 lines (17 loc) • 588 B
TypeScript
import type { CaptchaProvider, CaptchaWidgetType } from '@clerk/shared/types';
export type CaptchaOptions = {
action?: 'verify' | 'signin' | 'signup' | 'heartbeat';
captchaProvider: CaptchaProvider;
closeModal?: () => Promise<unknown>;
invisibleSiteKey: string;
modalContainerQuerySelector?: string;
modalWrapperQuerySelector?: string;
nonce?: string;
openModal?: () => Promise<unknown>;
siteKey: string;
widgetType: CaptchaWidgetType;
};
export type GetCaptchaTokenReturn = {
captchaToken: string;
captchaWidgetType: CaptchaWidgetType;
};