My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to authenticate my SPA?

Ankit Singhaniya's photo
Ankit Singhaniya
·Nov 5, 2017

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?