token is not an object