1
I’m designing a simple login architecture and I’m in doubt where to save the User Access Token.
The system will be developed in SPA using Angularjs and the server will be a REST API not yet defined. When the user logs into the system, he will receive a key that will be his Access Token for him to do any other operation on the system.
My question is how to store this token in the client side. Cookie is an option, but it does not seem safe, since it is very simple to open a Cookie and see the Token, I also thought to store in webstorage but I do not know if it is a good idea too.
Is there any pattern to this situation?