package sihl-web

  1. Overview
  2. Docs

Module Sihl_web.AuthenticationSource

Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourcetype credentials = {
  1. email : string;
  2. password : string;
}
Sourceval credentials_of_sexp : Sexplib0.Sexp.t -> credentials
Sourceval sexp_of_credentials : credentials -> Sexplib0.Sexp.t
Sourceval key_login : credentials Opium.Context.key
Sourceval login : email:string -> password:string -> Opium.Response.t -> Opium.Response.t
Sourceval default_site_error_handler : 'a -> Opium.Response.t Lwt.t
Sourceval session_middleware : ?key:string -> ?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) -> unit -> Rock.Middleware.t
Sourceval default_json_error_handler : 'a -> Opium.Response.t Lwt.t
Sourceval token_middleware : ?key:string -> ?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) -> unit -> Rock.Middleware.t
OCaml

Innovation. Community. Security.