Module Webs_passkey.Assertion

Assertions (client signed challenges).

type t

The type for assertions.

val credential_id : t -> Credential_id.t

credential_id a is the credential that signed the assertion.

val of_public_key_credential_json : string -> (t, string) Stdlib.result

of_public_key_credential_json s decodes an assertion from the JSON serialization of a PublicKeyCredential with an AuthenticatorAssertionResponse response member. Typically, the result of a response of a call to navigator.credential.get.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats an assertion for inspection.