Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#430·jwt-go

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

View original on GitHubView discussion on GitHub