cannot use func literal golang as a type jwt.Keyfunc
Author: fesquivelvCreated Sep 22, 2020Updated Sep 23, 2021
I am trying to parse a token with jwt.ParseWithClaim, but I get this message "cannot use func literal (type func(*jwt.Token) (interface {}, error)) as type jwt.Keyfunc"
I have github.com/dgrijalva/jwt-go v3.2.0+incompatible and go 1.15
Source: dgrijalva/jwt-go