export interface PasskeyProviderConfig { id: string; name: string; type: 'passkey'; // Functions to interact with a server for challenges getRegistrationChallenge: () => Promise; getAuthenticationChallenge: () => Promise; } export function Passkey(config: Omit) { return { id: 'passkey', name: 'Passkey', type: 'passkey' as const, ...config }; }