This should be `api.tokenPromise = null;`