Fixed hasAccessTokenExpired and code style