mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fixed discord avatar
This commit is contained in:
parent
f4d14bd042
commit
25d58f09ae
@ -34,7 +34,7 @@ export class DiscordProvider extends OAuthBaseProvider {
|
||||
accountId: info.id,
|
||||
displayName: info.global_name ?? info.username,
|
||||
email: info.email,
|
||||
profileImageUrl: `https://cdn.discordapp.com/avatars/${info.id}/${info.avatar}.${info.avatar.startsWith("a_") ? "gif" : "png"}`,
|
||||
profileImageUrl: info.avatar ? `https://cdn.discordapp.com/avatars/${info.id}/${info.avatar}.${info.avatar.startsWith("a_") ? "gif" : "png"}` : null,
|
||||
emailVerified: info.verified,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user