johnbrett / hapi-auth-bearer-token

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Unknown authentication strategy simple in /

dciccale opened this issue · comments

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?

Excellent spot @dciccale - will do.

thanks!