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 | 78962acc9dec6e1c2dbf328cbffef3d01986d4e2 (patch) | |
tree | f4e95f7a50736f190836a4009d8ce7a3463399c3 /src | |
parent | Move src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-ser... (diff) | |
download | server-78962acc9dec6e1c2dbf328cbffef3d01986d4e2.tar.xz |
lol
Diffstat (limited to 'src')
-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 |