Module Os_current_user.Opt
module Opt : sig..end
Instead of exception, the module Opt returns an option.
val get_current_user : unit -> Os_types.User.t option
get_current_user () returns the current user as a Os_types.User.t option type. If no user is connected, None is returned.
val get_current_userid : unit -> Os_types.User.id option
get_current_userid () returns the ID of the current user as an option. If no user is connected, None is returned.