update protocol (#4183)

* update protocol

* fix test
This commit is contained in:
cnderrauber
2025-12-22 12:54:11 +08:00
committed by GitHub
parent cd99fec2e7
commit 4104b8270b
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ func (m *APIKeyAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request,
return
}
grants, err := v.Verify(secret)
_, grants, err := v.Verify(secret)
if err != nil {
HandleError(w, r, http.StatusUnauthorized, errors.New("invalid token: "+authToken+", error: "+err.Error()))
return