package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val lifecycle : Sihl__.Core_container.Lifecycle.t
val create : Core.Ctx.t -> kind:string -> ?data:string -> ?expires_in:Utils.Time.duration -> unit -> (Sihl__.Token_core.t, string) Result.t Lwt.t
val find : Core.Ctx.t -> value:string -> unit -> (Sihl__.Token_core.t, string) Result.t Lwt.t

Returns an active and non-expired token

val find_opt : Core.Ctx.t -> value:string -> unit -> (Sihl__.Token_core.t option, string) Result.t Lwt.t

Returns an active and non-expired token

OCaml

Innovation. Community. Security.