DEV Community

Discussion on: User Authentication + JWT Authorization With Flutter and Node

Collapse
 
carminezacc profile image
Carmine Zaccagnino

What do you mean by TokenAuthentication? Token-based authentication is always the same as far as the frontend/mobile app is concerned, the difference is in how the backend generates the access token: it can be generated with sessions as random strings that are both stored in a database and sent to the frontend so that the backend can compare to the values it has in the database, it can be generated as an encrypted payload or, in the case of JWTs, as a signed payload encoded in base64.