Make.TokenServiceinclude Core.Container.SERVICEval start : Core__.Core_ctx.t -> Core__.Core_ctx.t Lwt.tval stop : Core__.Core_ctx.t -> unit Lwt.tval create :
Core.Ctx.t ->
kind:string ->
?data:string ->
?expires_in:Utils.Time.duration ->
unit ->
Token__.Token_core.t Lwt.tCreate 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.
val find : Core.Ctx.t -> string -> Token__.Token_core.t Lwt.tReturns an active and non-expired token.
val find_opt : Core.Ctx.t -> string -> Token__.Token_core.t option Lwt.tReturns an active and non-expired token.