We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f68bd7 commit 4e1f750Copy full SHA for 4e1f750
jwt.go
@@ -6,10 +6,11 @@ package echojwt
6
import (
7
"errors"
8
"fmt"
9
+ "net/http"
10
+
11
"github.com/golang-jwt/jwt/v4"
12
"github.com/labstack/echo/v4"
13
"github.com/labstack/echo/v4/middleware"
- "net/http"
14
)
15
16
// Config defines the config for JWT middleware.
@@ -224,7 +225,7 @@ func (config Config) ToMiddleware() (echo.MiddlewareFunc, error) {
224
225
}
226
227
// prioritize token errors over extracting errors
- err = lastTokenErr
228
+ err := lastTokenErr
229
if err == nil {
230
err = lastExtractorErr
231
0 commit comments