auth0 / go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests
MIT License
1.08k stars 205 forks source link

validationKeyGetter - can not use dgrijalva as form3tech-oss Keyfunc value in struct literal #237

Closed arunrajsingh closed 10 months ago

arunrajsingh commented 10 months ago

Checklist

Description

I am trying to upgrade one of our golang app from v1.16 to v1.18 while also upgrading the github.com/99designs/gqlgen from v0.11.3 to v0.17.41. I am getting following error with the upgrade. cannot use validationKeyGetter (variable of type func(token *"github.com/dgrijalva/jwt-go".Token) (interface{}, error)) as "github.com/form3tech-oss/jwt-go".Keyfunc value in struct literal

versions- github.com/auth0/go-jwt-middleware v1.0.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/form3tech-oss/jwt-go v3.2.5+incompatible

Highly appreciate any help in this regard.

Reproduction

Upgrading golang version from 1.16 to 1.18

Go JWT Middleware version

1.0.1

Go version

1.18

arunrajsingh commented 10 months ago

Not required