UNPKG

better-auth-webhooks

Version:

Webhooks plugin for Better Auth - Send real-time event notifications

22 lines (19 loc) 541 B
import { BetterAuthPlugin } from 'better-auth'; interface WebhooksOptions { events?: { [key: string]: boolean; }; signing?: { secret: string; algorithm?: "sha256" | "sha512"; }; retry?: { attempts?: number; backoff?: "linear" | "exponential"; initialDelay?: number; }; timeout?: number; headers?: Record<string, string>; } declare function webhooks(options?: WebhooksOptions): BetterAuthPlugin; export { type WebhooksOptions, webhooks as default, webhooks };