DEV Community

Discussion on: Token vs Session Authentication

Collapse
 
vasilevskialeks profile image
Aleksandar Vasilevsk

When the state is stored on the server like it is with the session approached, the bigger the app is, the more resources will be needed to the server (for example Reddit size) for every user that logs, the server will need to store the user state in the memory. The JWT is stored in the client browser and the server is just doing verification to check if the token is signed, that's why it can scale great with the size of the app.