Never read publications that make you use localStorage or sessionStorage to save credentials.
- Session
Make a simple Express examples. Then, test with Actix and Rocket.
https://stackoverflow.com/questions/2954879/how-session-works https://medium.com/@evangow/server-authentication-basics-express-sessions-passport-and-curl-359b7456003d https://www.npmjs.com/package/cookies https://www.npmjs.com/package/js-cookie https://github.com/expressjs/session
https://github.com/actix/examples https://gill.net.in/posts/auth-microservice-rust-actix-web1.0-diesel-complete-tutorial/ https://github.com/fairingrey/actix-realworld-example-app
- JWT(OAUTH2 with Social Medias)
https://github.com/steadylearner/JavaScript-Full-Stack/blob/master/Express/src/app.js https://github.com/steadylearner/JavaScript-Full-Stack/blob/master/Express/src/test/index.js