How to authenticate my SPA?
Today even when single page applications are so common. I am not able to find a well defined way to do authentication with a backend server that provides JWT.
I read this article which talks about not using local storage and using cookie instead.
I would like to know how you do authentication on your web app and what is the secure and easy way which you recommend for this?