Enclave API Documentation
  • Welcome
  • Getting Started
    • Integrations
  • SDK
  • Integrating with Privy
  • Models
    • Passkey Models
    • Transaction Models
    • User Model
    • Smart Balance
  • API Reference
    • Health Check
    • User Details
    • Smart Balance
    • Smart Account Creation
    • Smart Account Transactions
    • Passkey Account Creation
    • Passkey Account Authentication
    • Passkey Account Transactions
    • Session Key
  • COMING SOON
    • SDKs
    • Network Support
    • Protocol Integration
    • Mobile Integration
    • Custom Integration
Powered by GitBook
On this page
  • AuthenticatorDevice
  • RegistrationResponseJSON
  • AuthenticationResponseJSON
  1. Models

Passkey Models

AuthenticatorDevice

type AuthenticatorTransportFuture = 'ble' | 'cable' | 'hybrid' | 'internal' | 'nfc' | 'smart-card' | 'usb';
type AuthenticatorDevice = {
    credentialID: Base64URLString;
    credentialPublicKey: Uint8Array;
    counter: number;
    transports?: AuthenticatorTransportFuture[];
};

RegistrationResponseJSON

interface RegistrationResponseJSON {
    id: Base64URLString;
    rawId: Base64URLString;
    response: {
        clientDataJSON: Base64URLString;
        attestationObject: Base64URLString;
        authenticatorData?: Base64URLString;
        transports?: AuthenticatorTransportFuture[];
        publicKeyAlgorithm?: number;
        publicKey?: Base64URLString;
    }
    authenticatorAttachment?: "cross-platform" | "platform";
    clientExtensionResults: {
        appid?: boolean;
        credProps?: {
            rk?: boolean;
        }
        hmacCreateSecret?: boolean;
    }
    type: "public-key"
}

AuthenticationResponseJSON

interface AuthenticationResponseJSON {
    id: Base64URLString;
    rawId: Base64URLString;
    response: {
        clientDataJSON: Base64URLString;
        authenticatorData: Base64URLString;
        signature: Base64URLString;
        userHandle?: Base64URLString;
    }
    authenticatorAttachment?: "cross-platform" | "platform";
    clientExtensionResults: {
        appid?: boolean;
        credProps?: {
            rk?: boolean;
        }
        hmacCreateSecret?: boolean;
    }
    type: "public-key"
}
PreviousIntegrating with PrivyNextTransaction Models

Last updated 10 months ago