Compare commits

...

1 Commits

Author SHA1 Message Date
prabhat khera
bf6d205d78 fix(api): api error message [EE-6818] 2024-03-13 12:24:33 +13:00

View File

@@ -280,7 +280,7 @@ func (bouncer *RequestBouncer) mwAuthenticateFirst(tokenLookups []tokenLookup, n
for _, lookup := range tokenLookups {
resultToken, err := lookup(r)
if err != nil {
httperror.WriteError(w, http.StatusUnauthorized, "Invalid API key", httperrors.ErrUnauthorized)
httperror.WriteError(w, http.StatusUnauthorized, "Invalid token", httperrors.ErrUnauthorized)
return
}