Skip to content

Commit f9f1de0

Browse files
committed
fix: Discord userinfo typing
1 parent 1158f84 commit f9f1de0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/redirect.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ export const handleRedirect = async (req: NextRequest) => {
3737
}
3838

3939
const userData = (await sessionData.json()) as {
40-
user: {
41-
id: string;
42-
username: string;
43-
discriminator: string;
44-
avatar: string | null;
45-
email?: string;
46-
};
40+
id: string;
41+
username: string;
42+
discriminator: string;
43+
avatar: string | null;
44+
email?: string;
4745
};
4846

4947
const session: Session = {

0 commit comments

Comments
 (0)