diff --git a/apps/anvil/src/auth/authentication/authentication.controller.ts b/apps/anvil/src/auth/authentication/authentication.controller.ts index 0e05d8f..d56ec99 100644 --- a/apps/anvil/src/auth/authentication/authentication.controller.ts +++ b/apps/anvil/src/auth/authentication/authentication.controller.ts @@ -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);