package ez_api

  1. Overview
  2. Docs

Parameters

Signature

type login_error = [
  1. | EzSession.TYPES.login_error
  2. | EzSession.TYPES.connect_error
  3. | EzSession.TYPES.logout_error
  4. | `Too_many_login_attempts
  5. | `Session_expired
]
val connect : EzAPI.base_url -> ?token:string -> (((S.user_id, S.user_info) EzSession.TYPES.auth option, EzSession.TYPES.connect_error) result -> unit) -> unit
val login : ?format:(string -> string) -> EzAPI.base_url -> ?login:string -> ?password:string -> ?foreign:(string * string) -> (((S.user_id, S.user_info) EzSession.TYPES.auth, login_error) result -> unit) -> unit
val logout : EzAPI.base_url -> token:string -> ((bool, EzSession.TYPES.logout_error) result -> unit) -> unit
val disconnected : unit -> unit
val auth_headers : token:string -> (string * string) list
val get : unit -> (S.user_id, S.user_info) EzSession.TYPES.auth option
OCaml

Innovation. Community. Security.