{"library":"fetch-mw-oauth2","install":[{"cmd":"npm install fetch-mw-oauth2","imports":["import { OAuth2 } from 'fetch-mw-oauth2'","import type { OAuth2Options, OAuth2Token } from 'fetch-mw-oauth2'","import { OAuth2 } from 'fetch-mw-oauth2';\n\nconst oauth2 = new OAuth2({\n  clientId: 'your-client-id',\n  clientSecret: process.env.OAUTH_CLIENT_SECRET ?? '', // Optional in some cases\n  tokenEndpoint: 'https://auth.example.org/token',\n}, {\n  accessToken: 'initial-access-token',\n  refreshToken: 'initial-refresh-token',\n});\n\nconst response = await oauth2.fetch('https://api.example.org/data');"]},{"cmd":"yarn add fetch-mw-oauth2","imports":[]},{"cmd":"pnpm add fetch-mw-oauth2","imports":[]}]}