depends on if need to call other apis like microservices, you can use the JWT on behalf of the user to request the contents from other services. JWT also introduces `scope` which determine services user consented and allowed your backend to call. These things are not supported by a simple session cookie.
Spivak|6 years ago
If you're talking about something bespoke then it probably doesn't.
dwild|6 years ago
Isn't that JWT?
sk5t|6 years ago
idoubtit|6 years ago
The web server gets a token from the API server, then prepares a few JSON messages that the web client will send asynchronously with JS. Since each message content is signed, the web client can't tamper with what is sent to the API. JWT was perfect for this 3-tiers messaging.
Spivak|6 years ago