summary refs log tree commit diff
path: root/src
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
commit78962acc9dec6e1c2dbf328cbffef3d01986d4e2 (patch)
treef4e95f7a50736f190836a4009d8ce7a3463399c3 /src
parentMove src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-ser... (diff)
downloadserver-78962acc9dec6e1c2dbf328cbffef3d01986d4e2.tar.xz
lol
Diffstat (limited to 'src')
-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