Skip to content

Commit

Permalink
Merge pull request #405 from internxt/fix/return-tokens-on-password-c…
Browse files Browse the repository at this point in the history
…hange

[_] fix: return tokens on password change
  • Loading branch information
apsantiso authored Oct 2, 2024
2 parents 9c20e59 + 6e15596 commit c288ef1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ export class UserController {
privateKey,
encryptVersion,
});
return { status: 'success' };
const { token, newToken } = this.userUseCases.getAuthTokens(user);

return { status: 'success', newToken, token };
} catch (err) {
let errorMessage = err.message;

Expand Down

0 comments on commit c288ef1

Please sign in to comment.