WebauthnComponents.PublicKeyCredentialRequestOptions (WebauthnComponents v0.11.3)

View Source

Struct used to fetch a credential from a client authenticator device.

Pass an instance to WebauthnComponents.AuthenticationComponent through the @public_key_credential_request_options assign to control the request, such as the :timeout, :user_verification, and :allow_credentials values.

Resources

Summary

Types

t()

@type t() :: %WebauthnComponents.PublicKeyCredentialRequestOptions{
  allow_credentials: [AllowCredential.t()],
  challenge: binary(),
  extensions: map(),
  hints: [String.t()],
  rp_id: String.t() | nil,
  timeout: pos_integer(),
  user_verification: :required | :preferred | :discouraged
}