summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-28 16:06:02 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-28 16:06:02 +1100
commita75af3d9ffb9fd1598f692a49e5574b38e358e84 (patch)
tree0d87157f6d7e2809267a42f436841112753eb23e
parentMove src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-ser... (diff)
downloadserver-a75af3d9ffb9fd1598f692a49e5574b38e358e84.tar.xz
lol
-rw-r--r--src/api/routes/oauth2/callback.ts2
1 files changed, 1 insertions, 1 deletions
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