From f3a53857f6556cf699c45f44e806e172c74a357b Mon Sep 17 00:00:00 2001 From: pilcrow Date: Fri, 5 Apr 2024 08:58:42 +0900 Subject: [PATCH] Fix typo in account linking docs (#1526) --- docs/pages/guides/oauth/account-linking.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`