node-js-jwt-auth-mongodb icon indicating copy to clipboard operation
node-js-jwt-auth-mongodb copied to clipboard

Node.js + MongoDB: User Authentication & Authorization with JWT

Results 11 node-js-jwt-auth-mongodb issues
Sort by recently updated
recently updated
newest added

Hey, there I followed the same steps but tits throwing an error. tried several times but couldn't solve it. any help is appreciated

![image](https://user-images.githubusercontent.com/32120033/122358051-e844a900-cf71-11eb-8d3f-472e28ed0ee4.png)

### I have given the below things in the body { "username": "modera", "email": "[email protected]", "password": "12345678", "roles": ["user", "moderator"] } ### **Below is the exception error i am getting**...

ym@home node-js-jwt-auth-mongodb % node server.js Server is running on port 8080. Successfully connect to MongoDB. SyntaxError: Unexpected token a in JSON at position 69 at JSON.parse () at parse (/Users/ym/NonDropBox/projects/bezkoder/node-js-jwt-auth-mongodb/node_modules/body-parser/lib/types/json.js:89:19)...

I used your code in my project and I have rechecked the code a couple of times. It's working over http but I need it to work over https. Any...

I forked your code and ran npm install. Im running into this issue: Error: Illegal arguments: undefined, string (method:Post) localhost:8080/api/auth/signup Error: Illegal arguments: undefined, string at Object.bcrypt.hashSync (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/bcryptjs/dist/bcrypt.js:189:19) at exports.signup...

Could you please add a License? Thank you.

I added and updated comments to some functions, and logics in the code, for developers to read and understand the code easily.