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

interface conversion: interface {} is *jwt.Token, not *jwt.Token #14

Closed
diegobernardes opened this issue Feb 5, 2017 · 4 comments
Closed

Comments

@diegobernardes
Copy link

diegobernardes commented Feb 5, 2017

I'm getting a very strange error using the sample code from jwtauth. The error is at this line:

token := ctx.Value("jwt").(*jwt.Token)

Solved this issue after remove the vendor folder inside jwtauth project.

Keeping the vendor in a library project isn't a good idea, its better to remove it, the front page of the project has a very big warning about the dependency, its better to handle the dependencies at the application level.

@advdv
Copy link

advdv commented Feb 10, 2017

Yes, this is confusing. @see my comment here: #9

@VojtechVitek
Copy link
Contributor

@diegobernardes are you using Glide, as in #9? (see my comment #9 (comment) pls)

This project has test that imports jwt-go. We can't just remove it.

@pkieltyka
Copy link
Member

I suggest to use govendor

@adelowo
Copy link

adelowo commented Mar 13, 2017

Go seriously needs a dependency manager though.. Thanks a lot to everyone who figured this out

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

5 participants