Test get userinfo and then current profile to verify that user is authenticated.
Save the expiraion time of the authentication token and use in isAuthenticated.