Add generic isAuthenticated and currentUser functions.