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

Commit

Permalink
feat: login route now also returns user id
Browse files Browse the repository at this point in the history
  • Loading branch information
vycdev committed Jul 11, 2020
1 parent bcf10e5 commit a890c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/modules/auth/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ router.post(
ctx.status = 200;
ctx.body = {
message: "Successfully log in",
user: { name: user.name, role: user.role }
user: { name: user.name, role: user.role, id: user.id }
};

await next();
Expand Down

0 comments on commit a890c44

Please sign in to comment.