12345678910111213141516171819202122232425262728293031323334353637openSihl_typemoduletypeSig=sigincludeSihl_core.Container.Service.Sig(** Create a token and store a token.
Provide [expires_in] to define a duration in which the token is valid, default is
one day. Provide [data] to store optional data as string. Provide [length] to define
the length of the token in bytes. *)valcreate:kind:string->?data:string->?expires_in:Sihl_core.Time.duration->?length:int->unit->Token.tLwt.t(** Returns an active and non-expired token. Raises [Failure] if no token is found. *)valfind:string->Token.tLwt.t(** Returns an active and non-expired token. *)valfind_opt:string->Token.toptionLwt.t(** Returns an active and non-expired token by id. Raises [Failure] if no token is
found. *)valfind_by_id:string->Token.tLwt.t(** Returns an active and non-expired token by id. *)valfind_by_id_opt:string->Token.toptionLwt.t(** Invalidate a token by marking it as such in the database and therefore marking it
"to be deleted" *)valinvalidate:Token.t->unitLwt.tvalregister:unit->Sihl_core.Container.Service.tend