async getValue()

in packages/oauth-client/src/DefaultStorageValueCache.ts [20:32]


  async getValue(force = false): Promise<T | undefined> {
    const unlock = await this.#mutex.lock();

    try {
      if (this.#cachedValue !== undefined && !force) {
        return this.#cachedValue;
      }

      return await this.#refreshCache();
    } finally {
      unlock();
    }
  }