Skip to content

Commit

Permalink
fix(auth): token id
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed Jul 15, 2021
1 parent f9b2aed commit ae4a68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/src/routes/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ router.post(`${baseUrl}/login`, async (req, res) => {
}
const { role, username } = user;

const userJWT = createAccessToken({ username, email, role });
const userJWT = createAccessToken({ _id: user._id, username, email, role });

return res
.status(201)
Expand Down

0 comments on commit ae4a68e

Please sign in to comment.