Node-jsonwebtoken: How to implement Refresh Tokens?

Created on 3 Oct 2017  路  1Comment  路  Source: auth0/node-jsonwebtoken

Hi Team,

I have read multiple blogs and code snippets, which will describe what is the use-case of refresh token but none describe how to implement it.

I am using NodeJs, ExpressJs with JWT as a token mechanism, everything is working fine but the problem starts when the token is expired.
I have set the token which expires in 5m, the user has to login again?

I know how refresh tokens works but how to implement it in NodeJs.

Could it be possible to use another JWT token as refresh token with more expires time?

question

Most helpful comment

@2rohith2 since we got some questions related, not sure if you are referring to refresh tokens in OAuth sense or how to refresh a token (extend the expiration).

>All comments

@2rohith2 since we got some questions related, not sure if you are referring to refresh tokens in OAuth sense or how to refresh a token (extend the expiration).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndreOneti picture AndreOneti  路  3Comments

ngminhduong picture ngminhduong  路  3Comments

shea256 picture shea256  路  3Comments

rockchalkwushock picture rockchalkwushock  路  4Comments

Teebo picture Teebo  路  4Comments