web_authn_lite v0.4.0 WebAuthnLite.AuthenticatorData

Data struct and functions for AuthenticatorData

https://www.w3.org/TR/webauthn/#authenticator-data

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %WebAuthnLite.AuthenticatorData{
  attested_credential_data: binary(),
  extensions: binary(),
  flags: binary(),
  raw: String.t(),
  rp_id_hash: String.t(),
  sign_count: Integer.t()
}

Link to this section Functions

Link to this function decode(authenticator_data)
decode(authenticator_data :: String.t()) ::
  {:ok, t()} | {:error, :invalid_authenticator_data} | {:error, term()}
Link to this function from_binary(authenticator_data)
from_binary(authenticator_data :: binary()) ::
  {:ok, t()} | {:error, :invalid_authenticator_data} | {:error, term()}
Link to this function valid_rp_id_hash?(rp_id, base64_url_encoded_rp_id_hash)
valid_rp_id_hash?(
  rp_id :: String.t(),
  base64_url_encoded_rp_id_hash :: String.t()
) :: boolean()