Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val log_src : Logs.src
val credentials_of_sexp : Sexplib0.Sexp.t -> credentials
val sexp_of_credentials : credentials -> Sexplib0.Sexp.t
val key_login : credentials Opium.Context.key
val login :
email:string ->
password:string ->
Opium.Response.t ->
Opium.Response.t
val default_site_error_handler : 'a -> Opium.Response.t Lwt.t
val session_middleware :
?key:string ->
?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) ->
unit ->
Rock.Middleware.t
val default_json_error_handler : 'a -> Opium.Response.t Lwt.t
val token_middleware :
?key:string ->
?error_handler:(Sihl_contract__User.error -> Opium.Response.t Lwt.t) ->
unit ->
Rock.Middleware.t