Check if the access_token needs to be refreshed