Skip to content

Commit

Permalink
log twitter and discord codes
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-manning committed Dec 22, 2023
1 parent 8b1215a commit 75971af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/src/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const requiredKeys = ["twitterCode", "discordCode", "signature", "inviteCode"];
async function getTwitterUsername(code: string, secrets: Secrets): Promise<string> {
try {
logger.info("Getting Twitter data");
logger.info(`Code: ${code}`);
const twitterService = await TwitterService.fromCode(code, secrets);
return twitterService.getUsername();
} catch (error) {
Expand All @@ -23,6 +24,7 @@ async function getTwitterUsername(code: string, secrets: Secrets): Promise<strin
async function getDiscordData(code: string, secrets: Secrets): Promise<{ username: string; guilds: Guild[] }> {
try {
logger.info("Getting Discord data");
logger.info(`Code: ${code}`);
const discordService = await DiscordService.fromCode(code, secrets);
const username = await discordService.getUsername();
const guilds = await discordService.getGuilds();
Expand Down

0 comments on commit 75971af

Please sign in to comment.