ExSwan.Credential (exswan v0.1.0)

View Source

Public stored-credential value returned by registration and accepted by authentication.

id is an unpadded base64url string. public_key is the binary CBOR-encoded COSE key and should be persisted without transformation.

Summary

Functions

Represents a WebAuthn credential source as stored by the authenticator.

Types

credential_id()

@type credential_id() :: String.t()

t()

@type t() :: %ExSwan.Credential{
  credential_backed_up: boolean() | nil,
  credential_device_type: :single_device | :multi_device | nil,
  id: credential_id(),
  public_key: binary(),
  sign_count: non_neg_integer(),
  transports: [String.t()] | nil,
  user_handle: user_handle() | nil
}

user_handle()

@type user_handle() :: binary()

Functions

%ExSwan.Credential{}

(struct)

Represents a WebAuthn credential source as stored by the authenticator.