{"repo":"octokit/oauth-authorization-url.js","free":true,"listed":false,"github":"https://github.com/octokit/oauth-authorization-url.js","clone":"git clone https://github.com/octokit/oauth-authorization-url.js.git","description":"Universal library to retrieve GitHub’s identity URL for the OAuth web flow","language":"TypeScript","stars":19,"topics":["octokit-js","plugin","oauth","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"oauth-authorization-url.js Universal library to retrieve GitHub’s identity URL for the OAuth web flow See GitHub’s Developer Guide for the OAuth App web application flow. Note that the OAuth web application flow for GitHub Apps is slightly different. GitHub Apps do not support scopes for its user access tokens (they are called user-to-server tokens for GitHub Apps), instead they inherit the user permissions from the GitHub App's registration and the repository/organization access and permissions from the respective installation. - Usage - For OAuth Apps - For GitHub Apps - Options - Result - Types - License Usage Browsers Load @octokit/oauth-authorization-url directly from esm.sh Node Install with npm install @octokit/oauth-authorization-url [!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 Options name description clientId Required . The client ID you received from GitHub when you registered. clientType Must be set to either \"oauth-app\" or \"github-app\" . Defaults to \"oauth-app\" . redirectUrl The URL in your application where users will be sent after authorization. See Redirect URLs in GitHub’s Developer Guide. login Suggests a specific account to use for signing in and authorizing the app. scopes Only relevant when clientType is set ","default_branch":null,"files":null,"tree":[],"storefront":"/r/octokit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/octokit/oauth-authorization-url.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."}