Skip to content

Commit

Permalink
Update error to include cause
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 authored Apr 14, 2024
1 parent ec83946 commit 830bdd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class AuthenticationController {
try {
await this.blacklistService.addToBlacklist(refreshToken, expiryDate);
} catch (error) {
throw new ConflictException("Refresh token is invalid or expired");
throw new ConflictException({ message: "Refresh token is invalid or expired" }, { cause: error });
}

this.authService.clearAuthCookies(res);
Expand Down

0 comments on commit 830bdd1

Please sign in to comment.