We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b77ed5 commit c2b14dbCopy full SHA for c2b14db
1 file changed
middleware.go
@@ -69,13 +69,12 @@ func VerifyToken(cfg Options) func(next http.Handler) http.Handler {
69
jwtOptions := []jwt.ValidateOption{
70
jwt.WithAcceptableSkew(2 * time.Minute),
71
}
72
+ auth := NewAuth(cfg.JWTSecret)
73
74
return func(next http.Handler) http.Handler {
75
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
76
ctx := r.Context()
77
- auth := NewAuth(cfg.JWTSecret)
78
-
79
if cfg.ProjectStore != nil {
80
projectID, err := findProjectClaim(r)
81
if err != nil {
0 commit comments