diff --git a/docs/pages/guides/oauth/account-linking.md b/docs/pages/guides/oauth/account-linking.md index f32075913..437c682d7 100644 --- a/docs/pages/guides/oauth/account-linking.md +++ b/docs/pages/guides/oauth/account-linking.md @@ -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}`