From 7965ffe001053d6786774f94b7d768f9e980ad35 Mon Sep 17 00:00:00 2001 From: Bram Borggreve Date: Mon, 19 Feb 2024 23:34:05 +0000 Subject: [PATCH] fix: improve handling of Discord usernames with discriminator --- .../src/lib/strategies/oauth/api-auth-strategy-discord.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/api/auth/data-access/src/lib/strategies/oauth/api-auth-strategy-discord.ts b/libs/api/auth/data-access/src/lib/strategies/oauth/api-auth-strategy-discord.ts index 7360356b..42378d8e 100644 --- a/libs/api/auth/data-access/src/lib/strategies/oauth/api-auth-strategy-discord.ts +++ b/libs/api/auth/data-access/src/lib/strategies/oauth/api-auth-strategy-discord.ts @@ -34,7 +34,7 @@ function createDiscordProfile(profile: DiscordProfile) { return { externalId: profile.id, - username: parseInt(profile.discriminator) > 0 ? `${profile.username}#${profile.discriminator}` : profile.username, + username: parseInt(profile.discriminator) > 0 ? `${profile.username}.${profile.discriminator}` : profile.username, name: profile.global_name ?? profile.username, avatarUrl, bannerUrl,