2 ms·
It's very confusing... I still don't understand if Safari will delete a JWT in localStorage used to talk to different microservices.
by pier25 7y ago
It's very confusing...
I still don't understand if Safari will delete a JWT in localStorage used to talk to different microservices.
- BiteCode_dev 7y agoIt is confusing indeed. My guess would be that if your user uses service site.com, calling using microservice micro.com, then you have to store the JWT in the localstorage of site.com, but cannot store it on the localStorage of micro.com.
- drkstr 7y agoJWT tokens are irrevocable by design, or it would defeat the purpose. I would advise against issuing JWT token which are long-lived. Using "refresh tokens" are generally more prefered, as this gives an opportunity to revoke a stolen token in active use by the attacker. Even 7 days seems like an excessively large session time. That is 7 days a stolen token can be used to forge an authenticated session.