re: Practical Rust Web Development - Authentication VIEW POST

FULL DISCUSSION
 

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

 

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.

code of conduct - report abuse