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

createCredential

Create a WebAuthn credential using the browser's credentials API. Wraps navigator.credentials.create() with error handling.

function createCredential(options: StrictOmit<CredentialCreationOptions, "publicKey"> & {}): Promise<RequestResult<RegistrationCredential, WebAuthnError>>;
§
createCredential(options: StrictOmit<CredentialCreationOptions, "publicKey"> & {}): Promise<RequestResult<RegistrationCredential, WebAuthnError>>
[src]

§Parameters

§
options: StrictOmit<CredentialCreationOptions, "publicKey"> & {}
[src]
  • Options including publicKey parameters

§Return Type

§

Created credential or error