I’m creating an software that makes use of some libraries which implement golang-jwt/jwt/v5 for authentication. After I compile my mission, it downloads dependencies in a vendor folder containing github.com/golang-jwt/jwt/v5 folder as properly. After I construct the mission, I get an error:
vendor/github.com/golang-jwt/jwt/v5/errors_go_other.go:57:13: undefined: any
vendor/github.com/golang-jwt/jwt/v5/errors_go_other.go:60:12: undefined: any
vendor/github.com/golang-jwt/jwt/v5/errors_go_other.go:63:12: undefined: any
make: *** [Makefile:7: build] Error 2
I attempted fixing this by declaring “kind any = interface{}” within the file and rebuilding it, however this time from the native vendor folder and never downloading it from the GitHub. It builds accurately. However after I run the appliance, I get an error:
2023-06-02T13:36:39.843Z WARN jwt auth/jwt.go:54 unable to refresh JWKS keys environmental variable OIDC_SERVER_URL just isn’t set Can’t attain the OIDC server to refresh JWKS
Is there any patch for jwt/v5 to unravel the above drawback? I attempted it with totally different go variations as much as go1.20, however I nonetheless get the error. Please assist me.