This commit is contained in:
Zoe Roux 2025-04-05 00:46:30 +02:00
parent d88160218b
commit d4fbba8aeb
No known key found for this signature in database

View File

@ -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)
}