diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-28 16:06:02 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-28 16:06:02 +1100 |
commit | a75af3d9ffb9fd1598f692a49e5574b38e358e84 (patch) | |
tree | 0d87157f6d7e2809267a42f436841112753eb23e | |
parent | Move src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-ser... (diff) | |
download | server-a75af3d9ffb9fd1598f692a49e5574b38e358e84.tar.xz |
lol
-rw-r--r-- | src/api/routes/oauth2/callback.ts | 2 |
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 |