ReactJS and access tokens

28 views Asked by At

I want to store my refresh token in react, but I'm not sure where to store it. I've heard that it's best to store it in "HttpOnly" cookies. But I know it's not possible.

I saw online to store it in the local storage, but I know it's a bad idea. I also saw that I should store in context, then other opinions sparked saying that it's wrong to do so, I really don't know what to do.

So many opinions. Thank you for your time.

0

There are 0 answers