The best way to control Claude Code, Codex and more from any computer or phone

main
ts 18 lines 588 Bytes
Raw
1 import type { PasskeyCeremonyResult } from "./PasskeyBridge.ts";
2
3 export 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
9 export 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 }