johnbrett / hapi-auth-bearer-token

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.
MIT License
218 stars 46 forks source link

Add support to specify the options schema by using joi #101

Closed jonathansamines closed 8 years ago

jonathansamines commented 8 years ago

I just added options validations through joi schemas. Not sure however if having fixed versions as dependencies is an intended behaviour.

Let me know what you think about this change.

Solves #99

johnbrett commented 8 years ago

This looks great @jonathansamines, I'll merge this and add the extra tests myself. Thanks all the work on this too @AdriVanHoudt!

AdriVanHoudt commented 8 years ago

np, credit goes to @jonathansamines! 🎆