hagopj13 / hagopj13/node-express-boilerplate
Same token generated all the time
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
The issue names no files, tests, or entry points. Reproduce the login and registration flows, then trace where the access token is generated; done means identifying and correcting the repeated-token behavior and adding a regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, node.js
- Domain
- api, authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100