hagopj13 / hagopj13/node-express-boilerplate

It adds new refresh token when another token already exist for logged in user

Open
#274 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

I have hit the login API 10-15 times. All the times it creates new refresh token under tokens database. This bug should be solved as well as the #267 issue.

Contributor guide

Open the contributing guide

Research direction

Start at the login API and inspect how refresh tokens are stored in the tokens database. Compare the behavior with issue #267. Done means repeated logins no longer create duplicate refresh-token records for the same logged-in user, with coverage for that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, mongodb, node.js
Domain
api, authentication, backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.