diff --git a/auth/main.go b/auth/main.go index 6c986b46..05d05d26 100644 --- a/auth/main.go +++ b/auth/main.go @@ -32,6 +32,10 @@ func ErrorHandler(err error, c echo.Context) { if he, ok := err.(*echo.HTTPError); ok { code = he.Code message = fmt.Sprint(he.Message) + + if message == "missing or malformed jwt" { + code = http.StatusUnauthorized + } } else { c.Logger().Error(err) }