Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lumen-notes/lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Dec 26, 2024
2 parents 2b8055b + 62e2baa commit 3ebe85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlify/edge-functions/github-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function getUser(token: string) {
}

const emails = (await emailResponse.json()) as Array<{ email: string; primary: boolean; visibility: string }>
const primaryEmail = emails.find((email) => email.visibility === "public")
const primaryEmail = emails.find((email) => email.visibility !== "private")

if (!primaryEmail) {
throw new Error("No public email found. Check your email settings in https://github.com/settings/emails")
Expand Down

0 comments on commit 3ebe85a

Please sign in to comment.