fix: invert check

This commit is contained in:
Derrick Hammer 2024-03-20 14:28:46 -04:00
parent 6c0ae8c0e6
commit 053a55c1f3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
unauthorized = false unauthorized = false
} }
if unauthorized && audList == nil { if !unauthorized && audList == nil {
if audList == nil { if audList == nil {
var claim jwt.RegisteredClaims var claim jwt.RegisteredClaims