|
14 | 14 | - [Standalone usage](#standalone-usage) |
15 | 15 | - [Usage with Octokit](#usage-with-octokit) |
16 | 16 | - [`createOAuthUserClientAuth(options)` or `new Octokit({auth})`](#createoauthuserclientauthoptions-or-new-octokitauth) |
| 17 | + - [Custom store](#custom-store) |
| 18 | + - [Custom request](#custom-request) |
17 | 19 | - [`auth(command)`](#authcommand) |
18 | | -- [Authentication object](#authentication-object) |
| 20 | +- [Session object](#session-object) |
| 21 | + - [Authentication object](#authentication-object) |
| 22 | + - [OAuth APP authentication token](#oauth-app-authentication-token) |
| 23 | + - [GitHub APP user authentication token with expiring disabled](#github-app-user-authentication-token-with-expiring-disabled) |
| 24 | + - [GitHub APP user authentication token with expiring enabled](#github-app-user-authentication-token-with-expiring-enabled) |
19 | 25 | - [`auth.hook(request, route, parameters)` or `auth.hook(request, options)`](#authhookrequest-route-parameters-or-authhookrequest-options) |
20 | 26 | - [Contributing](#contributing) |
21 | 27 | - [License](#license) |
@@ -203,17 +209,17 @@ createOAuthAppAuth({ |
203 | 209 |
|
204 | 210 | The async `auth()` method returned by `createOAuthUserClientAuth(options)` accepts the following commands: |
205 | 211 |
|
206 | | -| Command | `{type: }` | Optional Arguments | |
207 | | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- | |
208 | | -| [Sign in](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#1-request-a-users-github-identity) | `"signIn"` | <ul><li><code>login: "user"</code></li><li><code>allowSignup: false</code></li><li><code>scopes: ["repo"]</code> (only relevant for OAuth Apps)</li></ul> | |
209 | | -| Get (local) token | `"getToken"` | – | |
210 | | -| [Create an app token](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#2-users-are-redirected-back-to-your-site-by-github) | `"createToken"` | – | |
211 | | -| [Check a token](https://docs.github.com/en/rest/reference/apps#check-a-token) | `"checkToken"` | – | |
212 | | -| [Create a scoped access token](https://docs.github.com/en/rest/reference/apps#create-a-scoped-access-token) (for OAuth App) | `"createScopedToken"` | – | |
213 | | -| [Reset a token](https://docs.github.com/en/rest/reference/apps#reset-a-token) | `"resetToken"` | – | |
214 | | -| [Renewing a user token with a refresh token](https://docs.github.com/en/developers/apps/building-github-apps/reshing-user-to-server-access-tokens#renewing-a-user-token-with-a-refresh-token) (for GitHub App with token expiration enabled) | `"refreshToken"` | – | |
215 | | -| [Delete an app token](https://docs.github.com/en/rest/reference/apps#delete-an-app-token) (sign out) | `"deleteToken"` | `offline: true` (only deletes session from local session store) | |
216 | | -| [Delete an app authorization](https://docs.github.com/en/rest/reference/apps#delete-an-app-authorization) | `"deleteAuthorization"` | – | |
| 212 | +| Command | `{type: }` | Optional Arguments | |
| 213 | +| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 214 | +| [Sign in](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#1-request-a-users-github-identity) | `"signIn"` | <ul><li><code>login: "user"</code></li><li><code>allowSignup: false</code></li><li><code>scopes: ["repo"]</code> (only relevant for OAuth Apps)</li></ul> | |
| 215 | +| Get (local) token | `"getToken"` | – | |
| 216 | +| [Create an app token](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#2-users-are-redirected-back-to-your-site-by-github) | `"createToken"` | – | |
| 217 | +| [Check a token](https://docs.github.com/en/rest/reference/apps#check-a-token) | `"checkToken"` | – | |
| 218 | +| [Create a scoped access token](https://docs.github.com/en/rest/reference/apps#create-a-scoped-access-token) (for OAuth App) | `"createScopedToken"` | – | |
| 219 | +| [Reset a token](https://docs.github.com/en/rest/reference/apps#reset-a-token) | `"resetToken"` | – | |
| 220 | +| [Renewing a user token with a refresh token](https://docs.github.com/en/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens#renewing-a-user-token-with-a-refresh-token) (for GitHub App with token expiration enabled) | `"refreshToken"` | – | |
| 221 | +| [Delete an app token](https://docs.github.com/en/rest/reference/apps#delete-an-app-token) (sign out) | `"deleteToken"` | `offline: true` (only deletes session from local session store) | |
| 222 | +| [Delete an app authorization](https://docs.github.com/en/rest/reference/apps#delete-an-app-authorization) | `"deleteAuthorization"` | – | |
217 | 223 |
|
218 | 224 | ## Session object |
219 | 225 |
|
|
0 commit comments