DEV Community

Discussion on: Practical Rust Web Development - Authentication

Collapse
 
ghost profile image
Ghost • Edited

Hi, is there a reason to choose jwt over the default actix-web auth system?

Collapse
 
werner profile image
Werner Echezuría

The default actix-web auth system uses cookies, I wanted to take advantage of all the features that jwt provides, like stateless authentication, so, I don't need to request a token against the database for every action the user does. That's the idea in theory, in a next post I'll try to write a front application that consumes the jwt.