@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

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 }