Fix Google Auth displays Status: 401 on screen (#7659)

When the user presses the cancel button, the server sends the following
response:

![image](https://github.com/user-attachments/assets/cb68cf01-b32c-4680-a811-cd917db88ca9)

{"statusCode": 401, "message": "Unauthorized"}

Now, when the user clicks the cancel button, they are redirected to the
home page for login.

Related Issue
Fixes #7584

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Pushpender
2024-10-18 03:51:57 +05:30
committed by GitHub
parent 6f5dc1c924
commit 8f7ca6a0e3
5 changed files with 51 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import {
ExceptionFilter,
Catch,
ArgumentsHost,
Catch,
ExceptionFilter,
HttpException,
} from '@nestjs/common';