javascript - JWT Refresh token using Sails JS -


i have read lot of posts nothing helped.

i using simple auth approach: user logs in, backend checks if valid user , gives access token using jwt. want implement refresh token. how be? should content of refresh token? when sign new access token, should sign refresh token , send both of them? when expired access token, how verify refresh token in order send 2 new tokens?

im using sails js in backend, perfect have example that

well, implementation create different jwtsignature, different secret, , refresh token on backend. know it's not fancy, work now.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -