:clipboard: Guidelines & Workflow for people contributing to our project(s) on GitHub. Please :star: to confirm you've read & understood! :white_check_mark:
I was on stuck following instructions on README.md. As it turns, the example is incorrect. Function validate should return { isValid: true } not { valid: true } to note correct token handling.
I was on stuck following instructions on README.md. As it turns, the example is incorrect. Function
validate
should return{ isValid: true }
not{ valid: true }
to note correct token handling.See: https://github.com/dwyl/hapi-auth-jwt2/blame/master/README.md#L63
and example on: https://github.com/dwyl/hapi-auth-jwt2/blob/master/example/server.js#L29