mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.96k stars 213 forks source link

+Async/Await Handling Callback Hell #185

Closed MrSlimCoder closed 4 years ago

mikenicholson commented 5 years ago

This is failing all CI builds.

Can you elaborate on the use case this addresses or how this PR improves the codebase in the description?

MrSlimCoder commented 5 years ago

You are using callback and callback is asynchronous you should use promise or async/await if you do so callback hell will not occur .