Skip to content

Commit ce85e6f

Browse files
fix example code in readme and docs
1 parent 0204ba4 commit ce85e6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ npm install arctic
1111
```ts
1212
import * as arctic from "arctic";
1313

14-
const github = new arctic.GitHub(clientId, clientSecret);
14+
const github = new arctic.GitHub(clientId, clientSecret, redirectURI);
1515

1616
const state = arctic.generateState();
1717
const scopes = ["user:email"];

docs/pages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Arctic is a collection of OAuth 2.0 clients for popular providers. Only the auth
1313
```ts
1414
import * as arctic from "arctic";
1515

16-
const github = new arctic.GitHub(clientId, clientSecret);
16+
const github = new arctic.GitHub(clientId, clientSecret, redirectURI);
1717

1818
const state = arctic.generateState();
1919
const scopes = ["user:email"];

0 commit comments

Comments
 (0)