sihl.token
Sihl_token
The token service provides an API to generate tokens that carry some data and expire after a certain amount of time. It takes care of secure random byte generation and the persistence and validation of tokens.
sihl
sihl.authn
sihl.authz
sihl.core
sihl.database
sihl.email
sihl.http
sihl.message
sihl.middleware
sihl.migration
sihl.password-reset
sihl.queue
sihl.repository
sihl.schedule
sihl.session
sihl.storage
sihl.user
sihl.utils
module Service : sig ... end
module Repo : sig ... end
module Sig : sig ... end
exception Exception of Base.string
module Status : sig ... end
type t
val pp : Format.formatter -> t -> unit
val show : t -> string
val equal : t -> t -> bool
val created_at : t -> Ptime.t
val expires_at : t -> Ptime.t
val status : t -> Status.t
val kind : t -> string
val data : t -> string option
val value : t -> string
val id : t -> string
val make : id:string -> value:string -> data:string option -> kind:string -> status:Status.t -> expires_at:Ptime.t -> created_at:Ptime.t -> t
val alco : t Alcotest.testable
val t : t Caqti_type.t