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

Error: Unknown authentication strategy simple in / #104

Closed dciccale closed 7 years ago

dciccale commented 8 years ago

Copy & paste the example on the README and run it with node

Hapi v15.1.1

apparently now register truly runs async, so trying to register routes before it finishes to register the auth strategy fails, could you update your example?

johnbrett commented 8 years ago

Excellent spot @dciccale - will do.

dciccale commented 8 years ago

thanks!

AdriVanHoudt commented 7 years ago

fixed by https://github.com/johnbrett/hapi-auth-bearer-token/commit/7d0102339ba47d0377b25bc0239714c0c1034208