package sihl-user

  1. Overview
  2. Docs
User service implementations for Sihl

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=d1cbae2e24ccea2d3232cfbff29a202c
sha512=cc4c49192f8c646e2dceca73e02b01c77eaedd8916a0fcc5d84c54c54ccfb8e241514cfd57e10a615a8e2f185f730d3015e380397263f31979d306dd55bfaa2e

doc/sihl-user/Sihl_user/PostgreSql/index.html

Module Sihl_user.PostgreSqlSource

Sourcemodule Web : sig ... end
Sourceval find_opt : string -> Sihl__Contract_user.t option Lwt.t
Sourceval find : string -> Sihl__Contract_user.t Lwt.t
Sourceval find_by_email : string -> Sihl__Contract_user.t Lwt.t
Sourceval find_by_email_opt : string -> Sihl__Contract_user.t option Lwt.t
Sourceval update_password : ?password_policy:(string -> (unit, string) Result.t) -> Sihl__Contract_user.t -> old_password:string -> new_password:string -> new_password_confirmation:string -> (Sihl__Contract_user.t, string) Result.t Lwt.t
Sourceval update : ?email:string -> ?username:string -> ?name:string -> ?given_name:string -> ?status:Sihl__Contract_user.status -> Sihl__Contract_user.t -> Sihl__Contract_user.t Lwt.t
Sourceval update_details : user:Sihl__Contract_user.t -> email:string -> username:string option -> Sihl__Contract_user.t Lwt.t
  • deprecated Use update() instead
Sourceval set_password : ?password_policy:(string -> (unit, string) Result.t) -> Sihl__Contract_user.t -> password:string -> password_confirmation:string -> (Sihl__Contract_user.t, string) Result.t Lwt.t
Sourceval create_user : ?username:string -> ?name:string -> ?given_name:string -> password:string -> string -> Sihl__Contract_user.t Lwt.t
Sourceval create_admin : ?username:string -> ?name:string -> ?given_name:string -> password:string -> string -> Sihl__Contract_user.t Lwt.t
Sourceval register_user : ?password_policy:(string -> (unit, string) result) -> ?username:string -> ?name:string -> ?given_name:string -> string -> password:string -> password_confirmation:string -> (Sihl__Contract_user.t, [ `Already_registered | `Invalid_password_provided of string ]) Result.t Lwt.t
Sourceval login : string -> password:string -> (Sihl__Contract_user.t, [ `Does_not_exist | `Incorrect_password ]) Result.t Lwt.t
Sourceval register : unit -> Sihl__.Core_service.t
Sourceval lifecycle : Sihl__.Core_lifecycle.lifecycle
OCaml

Innovation. Community. Security.