UNPKG

expo-passkey

Version:

Passkey authentication for Expo apps with Better Auth integration

23 lines 1.11 kB
/** * @file Native module wrapper for Expo Passkey * @module expo-passkey/client/native-module */ import type { AuthenticationPublicKeyCredential, NativeAuthenticationOptions, NativeRegistrationOptions, RegistrationPublicKeyCredential } from "../types"; /** * Check if passkeys are supported on this device via the native module * Enhanced with better error handling and debug logging */ export declare function isNativePasskeySupported(): Promise<boolean>; /** * Create a passkey using the native module * @param options WebAuthn registration options as JSON string * @returns Promise resolving to the credential */ export declare function createNativePasskey(options: NativeRegistrationOptions): Promise<RegistrationPublicKeyCredential>; /** * Authenticate with a passkey using the native module * @param options WebAuthn authentication options as JSON string * @returns Promise resolving to the credential */ export declare function authenticateWithNativePasskey(options: NativeAuthenticationOptions): Promise<AuthenticationPublicKeyCredential>; //# sourceMappingURL=native-module.d.ts.map