From 78962acc9dec6e1c2dbf328cbffef3d01986d4e2 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:06:02 +1100 Subject: lol --- src/api/routes/oauth2/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/routes') diff --git a/src/api/routes/oauth2/callback.ts b/src/api/routes/oauth2/callback.ts index 3c7fb777..ddfcdac2 100644 --- a/src/api/routes/oauth2/callback.ts +++ b/src/api/routes/oauth2/callback.ts @@ -32,7 +32,7 @@ router.get("/:type", route({}), async (req: Request, res: Response) => { const token = await generateToken(user.id); - return { token }; + return res.json({ token }) }); export default router; \ No newline at end of file -- cgit 1.4.1