DEV Community

Discussion on: The Ultimate Guide to JWT client side auth (Stop using local storage!!!)

Collapse
 
cyberhck profile image
Nishchal Gautam

You don't, you don't even need pub key to know when it expires, client side doesn't need public key at all,

Use a middleware to do refresh token when it's expired, that way if the app is idle, it won't do a refresh