{"repo":"octokit/auth-oauth-app.js","free":true,"listed":false,"github":"https://github.com/octokit/auth-oauth-app.js","clone":"git clone https://github.com/octokit/auth-oauth-app.js.git","description":"GitHub OAuth App authentication for JavaScript","language":"TypeScript","stars":75,"topics":["oauth","octokit-js","plugin","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"auth-oauth-app.js GitHub OAuth App authentication for JavaScript @octokit/auth-oauth-app is implementing one of GitHub’s authentication strategies. It implements authentication using an OAuth app’s client ID and secret as well as creating user access tokens GitHub's OAuth web application flow and device flow. - Standalone Usage - Authenticate as app - Authenticate user using OAuth Web Flow - Authenticate user using OAuth Device flow - Usage with Octokit - createOAuthAppAuth(options) or new Octokit({ auth }) - auth(options) or octokit.auth(options) - Client ID/Client Secret Basic authentication - OAuth web flow - OAuth device flow - Authentication object - OAuth App authentication - OAuth user access token authentication - GitHub APP user authentication token with expiring disabled - GitHub APP user authentication token with expiring enabled - auth.hook(request, route, parameters) or auth.hook(request, options) - Types - Implementation details - License Standalone Usage Browsers ⚠️ @octokit/auth-oauth-app is not meant for usage in the browser. The OAuth APIs to create tokens do not have CORS enabled, and a client secret must not be exposed to the client. If you know what you are doing, load @octokit/auth-oauth-app directly from esm.sh Node Install with npm install @octokit/auth-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 \"exp","default_branch":null,"files":null,"tree":[],"storefront":"/r/octokit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/octokit/auth-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."}