Check for access token before making a get request