Making all functions private and exposing only autoLogout to the user