dwyl / contributing

:clipboard: Guidelines & Workflow for people contributing to our project(s) on GitHub. Please :star: to confirm you've read & understood! :white_check_mark:
86 stars 9 forks source link

Incorrect example on README.md #114

Closed rayGobel closed 4 years ago

rayGobel commented 4 years ago

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

rayGobel commented 4 years ago

Incorrect place to put an issue.