Current_user.OptSourceInstead of exception, the module Opt returns an option.
get_current_user () returns the current user as a Types.User.t option type. If no user is connected, None is returned.
get_current_userid () returns the ID of the current user as an option. If no user is connected, None is returned.