Events

All public events are CustomEvent instances with a detail object. Event details do not expose client secrets.

  • sendity:ready — component initialized.
  • sendity:challenge-created — a code is displayed for the active verification.
  • sendity:authenticated — verification succeeded; send detail.signedResult to your backend.
  • sendity:error — initialization or verification failed.
type SendityAuthenticatedEvent = CustomEvent<{
  sessionId: string;
  channel: "email" | "unknown";
  address?: string;
  verificationId: string;
  signedResult: string;
  expiresAt?: string;
}>;