We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2261982 commit 5e7e809Copy full SHA for 5e7e809
src/redirect.ts
@@ -49,9 +49,7 @@ export const handleRedirect = async (req: NextRequest) => {
49
id: userData.id,
50
name: `${userData.username}`,
51
email: userData.email,
52
- avatar: userData.avatar
53
- ? `https://cdn.discordapp.com/avatars/${userData.id}/${userData.avatar}.png`
54
- : null,
+ avatar: `https://cdn.discordapp.com/avatars/${userData.id}/${userData.avatar}.png`
55
},
56
expires: new Date(Date.now() + response.expiresIn * 1000).toISOString(),
57
};
0 commit comments