mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
prevent panic when sse token is not found
This commit is contained in:
@ -29,7 +29,7 @@ func DecodeAuth() func(http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
tokenAuth := jwtauth.New("RS256", privateKey, publicKey)
|
||||
return jwtauth.Verify(tokenAuth, jwtauth.TokenFromHeader)
|
||||
return jwtauth.Verify(tokenAuth, jwtauth.TokenFromHeader, jwtauth.TokenFromQuery)
|
||||
}
|
||||
|
||||
// Enforce is a authentication middleware to enforce access from the
|
||||
|
Reference in New Issue
Block a user