You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error while running go get github.com/sfreiberg/gotwilio.
The error is: # github.com/sfreiberg/gotwilio ../github.com/sfreiberg/gotwilio/access_token.go:91:7: undefined: jwt.StandardClaims ../github.com/sfreiberg/gotwilio/access_token.go:104:53: cannot use claims (variable of type *twilioClaims) as jwt.Claims value in argument to jwt.NewWithClaims: *twilioClaims does not implement jwt.Claims (missing method GetAudience) ../github.com/sfreiberg/gotwilio/access_token.go:119:6: undefined: jwt.StandardClaims
The text was updated successfully, but these errors were encountered:
I was able to fix the issue by changing the import statement in access_token.go to github.com/dgrijalva/jwt-go. I saw there was a Pull Request merged in that changed this to "github.com/golang-jwt/jwt", but that library doesn't have the jwt.StandardClaims function.
Created a Pull Request to change the import statement back
I get an error while running
go get github.com/sfreiberg/gotwilio
.The error is:
# github.com/sfreiberg/gotwilio ../github.com/sfreiberg/gotwilio/access_token.go:91:7: undefined: jwt.StandardClaims ../github.com/sfreiberg/gotwilio/access_token.go:104:53: cannot use claims (variable of type *twilioClaims) as jwt.Claims value in argument to jwt.NewWithClaims: *twilioClaims does not implement jwt.Claims (missing method GetAudience) ../github.com/sfreiberg/gotwilio/access_token.go:119:6: undefined: jwt.StandardClaims
The text was updated successfully, but these errors were encountered: