Hello,
have a controller like this:
@UseGuards(AuthGuard('jwt'))
@Get('/checkout')
async createCheckout(
@Res() response: Response,
@Request() req,
@Query() paymentRequestBody: PaymentRequestDTO,
) {
const checkout = await this.paymentService.createCheckout(
req.user,
paymentRequestBody,
)
return response.redirect(HttpStatus.SEE_OTHER, checkout.url)
}
trying to figure out how to catch HttpException(403) from Authguard and redirect , but only for this controller.