fix: invert check
This commit is contained in:
parent
6c0ae8c0e6
commit
053a55c1f3
|
@ -147,7 +147,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
|
|||
unauthorized = false
|
||||
}
|
||||
|
||||
if unauthorized && audList == nil {
|
||||
if !unauthorized && audList == nil {
|
||||
if audList == nil {
|
||||
var claim jwt.RegisteredClaims
|
||||
|
||||
|
|
Loading…
Reference in New Issue