hagopj13 / node-express-boilerplate

A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
MIT License
6.66k stars 1.98k forks source link

Same token generated all the time #285

Open amaioru0 opened 5 months ago

amaioru0 commented 5 months ago

Hi there,

Whenever a user logins or reigster the same token gets generated

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NWI1ZmQ2NDJjMTFhZjFkNjA5YjQ4MjIiLCJpYXQiOjE3MDY0MjU3MDAsImV4cCI6MTcwNjQyNzUwMCwidHlwZSI6ImFjY2VzcyJ9.Rg9cT1IbOLfPMGrxjTMvaiaaLietXQ0bQ5CvNwTjBqE"

Why is this happening? I haven't changed a thing in it. It's worth mentioning I have another version that I modified but haven't used for a long time and found this bug so I tried the repo and it looks like it has the same bug.

amaioru0 commented 5 months ago

Never mind is not doing that.

chintanshahts commented 3 weeks ago

@amaioru0 Please close the issue then