Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install package #110

Open
liannarnold opened this issue Apr 11, 2023 · 1 comment
Open

Unable to install package #110

liannarnold opened this issue Apr 11, 2023 · 1 comment

Comments

@liannarnold
Copy link

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

@liannarnold
Copy link
Author

liannarnold commented Apr 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant