Skip to content

Commit

Permalink
fix: make signup route return jwt token
Browse files Browse the repository at this point in the history
  • Loading branch information
neo773 committed Apr 21, 2024
1 parent 426d1ea commit 9a8d08a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/auth/service/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export class AuthService {
true,
);

return user;
const token = await this.generateToken(user);

return { ...user, token };
}

async signIn(dto: SigninDto) {
Expand Down

0 comments on commit 9a8d08a

Please sign in to comment.