Module Webs_passkey.Credential_id

Credential IDs.

type t

The type for credential ID.

val equal : t -> t -> bool

equal c0 c1 is true iff c0 is equal to c1.

val compare : t -> t -> int

compare is a total order on credential ids.

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

of_binary_string s is a credential ID from s. Errors if the length is not between 100 and 1023.

val to_binary_string : t -> string

to_binary_string cid are the bytes of credential ID cid.

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

pp formats credentials for inspection using base64url.