package sihl-user

  1. Overview
  2. Docs
val user_from_token : ?ctx:(string * string) list -> ?key:string -> (?ctx:(string * string) list -> string -> k:string -> string option Lwt.t) -> Rock.Request.t -> Sihl__Contract_user.t option Lwt.t
val user_from_session : ?ctx:(string * string) list -> ?cookie_key:string -> ?secret:string -> ?key:string -> Rock.Request.t -> Sihl__Contract_user.t option Lwt.t
OCaml

Innovation. Community. Security.