Sourcetype status = | Active| Inactive
Sourcetype t = {id : string;email : string;username : string option;name : string option;given_name : string option;password : string;status : status;admin : bool;confirmed : bool;created_at : Ptime.t;updated_at : Ptime.t;
} Sourceval show_name : t -> string option Sourceexception Exception of string Sourceval set_user_details : t -> email:string -> username:string option -> t Sourceval matches_password : string -> t -> bool Sourceval default_password_policy : string -> (unit, string) result Sourceval make :
?id:string ->
email:string ->
password:string ->
name:string option ->
given_name:string option ->
username:string option ->
admin:bool ->
bool ->
(t, string) result