summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-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