Skip to content

Commit

Permalink
Fix typo in account linking docs (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Apr 4, 2024
1 parent a904ad5 commit f3a5385
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/pages/guides/oauth/account-linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ In general, you'd want to link accounts with the same email. Keep in mind that t
```ts
import { generateId } from "lucia";

const tokens = await github.validateAuthorizationCode(code, {
scopes: ["user:email"]
});
// Make sure you requested for the "user:email" scope.
const tokens = await github.validateAuthorizationCode(code);
const userResponse = await fetch("https://api.github.com/user", {
headers: {
Authorization: `Bearer ${tokens.accessToken}`
Expand Down

0 comments on commit f3a5385

Please sign in to comment.