Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Add JWT to response
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXyfir committed Mar 20, 2019
1 parent 01bfb94 commit 9de4ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/login/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function api_login(
login(req.body.email, req.body.pass, req.body.otp)
.then(token => {
res.cookie(JWT_COOKIE_NAME, token, { maxAge: 31540000000 });
res.status(200).json({});
res.status(200).json({ jwt: token });
})
.catch(next);
}

0 comments on commit 9de4ec6

Please sign in to comment.