-1

if I store token in my local storage of angular project what is wrong in it. Apart from this, what is the other way to store token in my project because I am using client-side framework so everything is open to see if I use local/session storage, indexedDB, cookies

1 Answers1

0

Cross Site Request Forgery(CSRF) is a pertinent problem when you store the token in localStorage. Do not store JWT in the local storage. Refer to this link for more details Where to store JWT in browser? How to protect against CSRF?