package ocsigen-start

  1. Overview
  2. Docs
type sms_error_core = [
  1. | `Invalid_number
  2. | `Limit
  3. | `Send
  4. | `Unknown
]
val set_send_sms_handler : (number:string -> string -> (unit, sms_error_core) result Lwt.t) -> unit
val confirm_code_signup_no_connect : first_name:string -> last_name:string -> code:string -> password:string -> unit -> Os_types.User.id option Lwt.t
val confirm_code : Os_types.User.id -> string -> bool Lwt.t
type sms_error = [
  1. | `Invalid_number
  2. | `Limit
  3. | `Ownership
  4. | `Send
  5. | `Unknown
]
val request_code : string -> (unit, sms_error) result Lwt.t
val request_recovery_code : string -> (unit, sms_error) result Lwt.t
val confirm_code_extra : string -> bool Lwt.t
val confirm_code_signup : first_name:string -> last_name:string -> code:string -> password:string -> unit -> bool Lwt.t
val confirm_code_recovery : string -> bool Lwt.t
val connect : keepmeloggedin:bool -> password:string -> string -> [ `Login_ok | `No_such_user | `Password_not_set | `Wrong_password ] Lwt.t
OCaml

Innovation. Community. Security.