hagopj13 / hagopj13/node-express-boilerplate

Refresh access token generates new refresh token with new expiration time

Open
#142 1 comment 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

Refresh access token generates new access and refresh token pair which is fine.
New refresh token generates with a next +2 days from current time. which gives +2 more session days.
So thing is if i generate access token on daily basis then user will not be ask for login again.

While generating a new token pair, Need to use same expiration time that old refresh token have.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.