|
76 | 76 | Install with `npm install @octokit/auth-oauth-user`
|
77 | 77 |
|
78 | 78 | ```js
|
79 |
| -const { createOAuthUserAuth } = require("@octokit/auth-oauth-user"); |
| 79 | +import { createOAuthUserAuth } from "@octokit/auth-oauth-user"; |
80 | 80 | ```
|
81 | 81 |
|
82 | 82 | </td></tr>
|
|
167 | 167 | Install with `npm install @octokit/core @octokit/auth-oauth-user`. Optionally replace `@octokit/core` with a compatible module
|
168 | 168 |
|
169 | 169 | ```js
|
170 |
| -const { Octokit } = require("@octokit/core"); |
171 |
| -const { createOAuthUserAuth } = require("@octokit/auth-oauth-user"); |
| 170 | +import { Octokit } from "@octokit/core"; |
| 171 | +import { createOAuthUserAuth } from "@octokit/auth-oauth-user"; |
172 | 172 | ```
|
173 | 173 |
|
174 | 174 | </td></tr>
|
@@ -297,7 +297,7 @@ The <code>redirect_uri</code> parameter you provided in [Step 1 of GitHub's OAut
|
297 | 297 | You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example:
|
298 | 298 |
|
299 | 299 | ```js
|
300 |
| -const { request } = require("@octokit/request"); |
| 300 | +import { request } from "@octokit/request"; |
301 | 301 | createOAuthAppAuth({
|
302 | 302 | clientId: "1234567890abcdef1234",
|
303 | 303 | clientSecret: "1234567890abcdef1234567890abcdef12345678",
|
@@ -401,7 +401,7 @@ const auth = createOAuthUserAuth({
|
401 | 401 | You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example:
|
402 | 402 |
|
403 | 403 | ```js
|
404 |
| -const { request } = require("@octokit/request"); |
| 404 | +import { request } from "@octokit/request"; |
405 | 405 | createOAuthAppAuth({
|
406 | 406 | clientId: "1234567890abcdef1234",
|
407 | 407 | clientSecret: "1234567890abcdef1234567890abcdef12345678",
|
@@ -539,7 +539,7 @@ createOAuthAppAuth({
|
539 | 539 | You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example:
|
540 | 540 |
|
541 | 541 | ```js
|
542 |
| -const { request } = require("@octokit/request"); |
| 542 | +import { request } from "@octokit/request"; |
543 | 543 | createOAuthAppAuth({
|
544 | 544 | clientId: "1234567890abcdef1234",
|
545 | 545 | clientSecret: "1234567890abcdef1234567890abcdef12345678",
|
|
0 commit comments