Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

serializeCredentialRequestResponse

Convert an authentication/verification credential response to server format. Serializes binary fields to base64url for JSON transmission. Supports both native WebAuthn Level 3 toJSON and manual fallback.

function serializeCredentialRequestResponse(credential: AuthenticationCredential): AuthenticationResponseJSON;
§
serializeCredentialRequestResponse(credential: AuthenticationCredential): AuthenticationResponseJSON
[src]

§Parameters

§
  • Credential from navigator.credentials.get()

§Return Type

§

JSON-serializable credential for server