package sihl-token

  1. Overview
  2. Docs
val lifecycle : Sihl_core__Container.Lifecycle.t
val create : ?secret:string -> ?expires_in:Sihl_core.Time.duration -> (string * string) list -> string Lwt.t
val read : ?secret:string -> ?force:unit -> string -> k:string -> string option Lwt.t
val read_all : ?secret:string -> ?force:unit -> string -> (string * string) list option Lwt.t
val verify : ?secret:string -> string -> bool Lwt.t
val deactivate : string -> unit Lwt.t
val activate : string -> unit Lwt.t
val is_active : string -> bool Lwt.t
val is_expired : ?secret:string -> string -> bool Lwt.t
val is_valid : ?secret:string -> string -> bool Lwt.t
val register : unit -> Sihl_core.Container.Service.t
OCaml

Innovation. Community. Security.