Remove redundant code in getAccessTokenData(), fix token check that is too strict.