sihl.token
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.app
sihl.authn
sihl.authz
sihl.cmd
sihl.configuration
sihl.core
sihl.data
sihl.email
sihl.http
sihl.log
sihl.message
sihl.middleware
sihl.queue
sihl.schedule
sihl.server
sihl.session
sihl.storage
sihl.user
sihl.utils
sihl.web
module Service : 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