Skip to content

Commit

Permalink
refactor: add email to login return object
Browse files Browse the repository at this point in the history
  • Loading branch information
hboppe committed Jul 14, 2023
1 parent 765e631 commit a2a35e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/domain/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export class AuthService {
});

return {
token: this.jwtService.sign({
user: { email },
accessToken: this.jwtService.sign({
email: email,
subject: user.id,
}),
Expand Down

0 comments on commit a2a35e7

Please sign in to comment.