From c42a2995107e3ef5066f0aec893c78492452b742 Mon Sep 17 00:00:00 2001 From: Karl <84397151+kgni@users.noreply.github.com> Date: Thu, 15 Feb 2024 23:47:45 +0100 Subject: [PATCH] [DOCS] Update Github OAuth guide to contain 'User-Agent' in fetch header (#1434) Co-authored-by: pilcrow --- docs/pages/guides/oauth/account-linking.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/guides/oauth/account-linking.md b/docs/pages/guides/oauth/account-linking.md index 341c19ac8..231f3785b 100644 --- a/docs/pages/guides/oauth/account-linking.md +++ b/docs/pages/guides/oauth/account-linking.md @@ -17,6 +17,7 @@ const tokens = await github.validateAuthorizationCode(code); const userResponse = await fetch("https://api.github.com/user", { headers: { Authorization: `Bearer ${tokens.accessToken}` + "User-Agent": "my-app", // GitHub requires a User-Agent header } }); const githubUser = await userResponse.json();