Skip to content

Commit d66ee42

Browse files
A91ybalazsorban44
andauthored
fix(docs): link to getting email for auth'ed user in github endpoint (#11896)
* fix: updated email for auth user in github endpoint https://docs.github.com/en/rest/users/emails?apiVersion=2022-11-28#list-public-email-addresses-for-the-authenticated-user * Apply suggestions from code review --------- Co-authored-by: Balázs Orbán <[email protected]>
1 parent 31d827a commit d66ee42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-auth/src/providers/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function Github<P extends GithubProfile>(
7676

7777
if (!profile.email) {
7878
// If the user does not have a public email, get another via the GitHub API
79-
// See https://docs.github.com/en/rest/users/emails#list-public-email-addresses-for-the-authenticated-user
79+
// See https://docs.github.com/en/rest/users/emails#list-email-addresses-for-the-authenticated-user
8080
const res = await fetch("https://api.github.com/user/emails", {
8181
headers: { Authorization: `token ${tokens.access_token}` },
8282
})

0 commit comments

Comments
 (0)