{"repo":"octokit/oauth-app.js","free":true,"listed":false,"github":"https://github.com/octokit/oauth-app.js","clone":"git clone https://github.com/octokit/oauth-app.js.git","description":"GitHub OAuth toolset for Node.js","language":"TypeScript","stars":89,"topics":["octokit-js","tooling","oauth","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"oauth-app.js GitHub OAuth toolset for Node.js Table of contents - Usage - For OAuth Apps - For GitHub Apps - Examples - OAuthApp.defaults(options) - Constructor options - app.on(eventName, eventHandler) - app.octokit - app.getUserOctokit(options) - app.getWebFlowAuthorizationUrl(options) - app.createToken(options) - For OAuth Web flow - For OAuth Device flow - app.checkToken(options) - app.resetToken(options) - app.refreshToken(options) - app.scopeToken(options) - app.deleteToken(options) - app.deleteAuthorization(options) - Middlewares - createNodeMiddleware(app, options) - createWebWorkerHandler(app, options) - createAWSLambdaAPIGatewayV2Handler(app, options) - Build Custom Middlewares - Contributing - License Usage Browsers @octokit/oauth-app is not meant for browser usage. Node Install with npm install @octokit/oauth-app [!IMPORTANT] As we use conditional exports, you will need to adapt your tsconfig.json by setting \"moduleResolution\": \"node16\", \"module\": \"node16\" . See the TypeScript docs on package.json \"exports\". See this helpful guide on transitioning to ESM from @sindresorhus For OAuth Apps For GitHub Apps GitHub Apps do not support scopes . If the GitHub App has expiring user tokens enabled, the token used for the octokit instance will be refreshed automatically, and the additional refresh-related properties will be passed to the \"token\" event handler. Examples - Node server with static files served from public/ folder, hosted on Glitch: - Serverless functions, host","default_branch":null,"files":null,"tree":[],"storefront":"/r/octokit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/octokit/oauth-app.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}