I have been reading a lot about not saving the tokens in the user agent storage and I agree with the risks mentioned. But going through some of the Auth0 quickstart examples, I see the tokens being saved in the session and using session cookies to track them.
Others mention saving the actual token as an httpOnly cookie with lower risks involved.
My questions are:
- How is that considered stateless? especially with scalability and the potential use of load balancers.
- Are the alternatives, memory cache and database stores? Is it that any different from sessions?
- In the case of SPAs, how to maintain remember me functionality?