UNPKG

expo-passkey

Version:

Passkey authentication for Expo apps with Better Auth integration

29 lines 1.03 kB
/** * Interface for the ExpoPasskey native module */ export interface ExpoPasskeyInterface { /** * Check if WebAuthn/passkeys are supported on this device * @returns Boolean indicating if passkeys are supported */ isPasskeySupported(): boolean; /** * Create a new passkey (WebAuthn credential registration) * @param options Options containing WebAuthn registration request as JSON * @returns Promise resolving to credential JSON string */ createPasskey(options: { requestJson: string; }): Promise<string>; /** * Authenticate with a passkey (WebAuthn credential authentication) * @param options Options containing WebAuthn authentication request as JSON * @returns Promise resolving to credential JSON string */ authenticateWithPasskey(options: { requestJson: string; }): Promise<string>; } declare const ExpoPasskeyModule: ExpoPasskeyInterface; export default ExpoPasskeyModule; //# sourceMappingURL=ExpoPasskeyModule.d.ts.map