package sihl-user

  1. Overview
  2. Docs
val find_opt : user_id:string -> Sihl__Contract_user.t option Lwt.t
val find : user_id:string -> Sihl__Contract_user.t Lwt.t
val find_by_email : email:string -> Sihl__Contract_user.t Lwt.t
val find_by_email_opt : email:string -> Sihl__Contract_user.t option Lwt.t
val update_password : ?password_policy:(string -> (unit, string) Result.t) -> user:Sihl__Contract_user.t -> old_password:string -> new_password:string -> new_password_confirmation:string -> unit -> (Sihl__Contract_user.t, string) Result.t Lwt.t
val update_details : user:Sihl__Contract_user.t -> email:string -> username:string option -> Sihl__Contract_user.t Lwt.t
val set_password : ?password_policy:(string -> (unit, string) Result.t) -> user:Sihl__Contract_user.t -> password:string -> password_confirmation:string -> unit -> (Sihl__Contract_user.t, string) Result.t Lwt.t
val create : email:string -> password:string -> username:string option -> admin:bool -> confirmed:bool -> (Sihl__Contract_user.t, string) result Lwt.t
val create_user : email:string -> password:string -> username:string option -> Sihl__Contract_user.t Lwt.t
val create_admin : email:string -> password:string -> username:string option -> Sihl__Contract_user.t Lwt.t
val register_user : ?password_policy:(string -> (unit, string) result) -> ?username:string -> email:string -> password:string -> password_confirmation:string -> unit -> (Sihl__Contract_user.t, Sihl__Contract_user.error) Result.t Lwt.t
val login : email:string -> password:string -> (Sihl__Contract_user.t, Sihl__Contract_user.error) Result.t Lwt.t
val register : unit -> Sihl__.Core_container.Service.t
val lifecycle : Sihl__Core_container.lifecycle
OCaml

Innovation. Community. Security.