Add ignoreErrors to sentry

This commit is contained in:
Stefan Kostic
2022-04-06 17:15:17 +02:00
parent 82c36eba97
commit e5c2e5337f
5 changed files with 5 additions and 73 deletions

View File

@@ -44,7 +44,7 @@ func (controller *AuthController) Auth(c echo.Context) error {
accessToken, refreshToken, err := controller.svc.GenerateToken(c.Request().Context(), body.Login, body.Password, body.RefreshToken)
if err != nil {
return c.JSON(http.StatusBadRequest, responses.BadAuthError)
return c.JSON(http.StatusUnauthorized, responses.BadAuthError)
}
return c.JSON(http.StatusOK, &AuthResponseBody{