{"repo":"octokit/auth-oauth-user.js","free":true,"listed":false,"github":"https://github.com/octokit/auth-oauth-user.js","clone":"git clone https://github.com/octokit/auth-oauth-user.js.git","description":"Octokit authentication strategy for OAuth clients","language":"TypeScript","stars":18,"topics":["oauth","octokit-js","plugin","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"auth-oauth-user.js Octokit authentication strategy for OAuth user authentication Important: @octokit/auth-oauth-user requires your app's client secret , which must not be exposed. If you are looking for an OAuth user authentication strategy that can be used on a client (browser, IoT, CLI), check out @octokit/auth-oauth-user-client . Note that @octokit/auth-oauth-user-client requires a backend. The only exception is @octokit/auth-oauth-device which does not require the client secret , but does not work in browsers due to CORS constraints. Table of contents - Features - Standalone usage - Exchange code from OAuth web flow - OAuth Device flow - Use an existing authentication - Usage with Octokit - createOAuthUserAuth(options) or new Octokit({ auth }) - When using GitHub's OAuth web flow - When using GitHub's OAuth device flow - When passing an existing authentication object - auth(options) or octokit.auth(options) - Authentication object - OAuth APP authentication token - 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 - Contributing - License Features - Code for token exchange from GitHub's OAuth web flow - GitHub's OAuth device flow - Caches token for succesive calls - Auto-refreshing for expiring user access tokens - Applies the correct authentication strategy based on the request URL when using with Octokit - Token verificati","default_branch":null,"files":null,"tree":[],"storefront":"/r/octokit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/octokit/auth-oauth-user.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."}