From 09aa3614da89238395c23a84f8ad3e6cff16cdb1 Mon Sep 17 00:00:00 2001 From: Eliot Partridge Date: Fri, 13 Sep 2019 16:44:40 -0500 Subject: [PATCH] Add TODO to code itself --- src/ts/server/oauth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ts/server/oauth.ts b/src/ts/server/oauth.ts index ce957ee..be161b1 100644 --- a/src/ts/server/oauth.ts +++ b/src/ts/server/oauth.ts @@ -121,6 +121,8 @@ export function getProfileUrl(profile: OAuthProfile): string | undefined { export function getProfileEmails(profile: OAuthProfile): string[] { if (profile.provider === 'discord') { + // TODO: diagnose why we aren't receiving the email from Discord + // for now, we just won't attempt to record an email if we don't receive one return profile.email ? [profile.email] : []; } else if (profile.emails && profile.emails.length) { return profile.emails.map(e => e.value);