adam-hanna / jwt-auth

This package provides json web token (jwt) middleware for goLang http servers
MIT License
231 stars 43 forks source link

Unexported function when work with Gin and Iris #5

Closed se77en closed 7 years ago

se77en commented 7 years ago

The Auth's process function is unexported, so I can't use it when work with Gin and Iris.

adam-hanna commented 7 years ago

Thanks!

Also, would love to know how you're integrating with Gin and Iris so I could update the docs!

se77en commented 7 years ago

I wrote a demo for this. And please note if this line change to return like ReadMe shows, it does nothing and you can still visit the private api, because the c.Next() bring to next handler.

adam-hanna commented 7 years ago

Very interesting. I'll take a look!