1import type { PasskeyCeremonyResult } from "./PasskeyBridge.ts";
2
3export interface PasskeyCeremonyContext {
4 /** The committed origin of the frame that asked; never the page's own claim. */
5 readonly origin: string;
6 readonly nativeWindowHandle: Buffer;
7}
8
9export interface PasskeyBackend {
10 readonly create: (
11 publicKey: PublicKeyCredentialCreationOptions,
12 context: PasskeyCeremonyContext,
13 ) => Promise<PasskeyCeremonyResult>;
14 readonly get: (
15 publicKey: PublicKeyCredentialRequestOptions,
16 context: PasskeyCeremonyContext,
17 ) => Promise<PasskeyCeremonyResult>;
18}