0

I am using React, laravel and jwt-auth
I save my tokens as a React state but when refreshing the page it's gone and that is logical.
The question is where should I keep my tokens?
I don't want to keep them in session storage, local storage or cookies because of XSS attack, Is it possible to just call for another token using jwt-auth like with Auth0?
note: there is a function called refresh() in jwt-auth but to use it i need to input the old token as a header

Lana Hanna
  • 15
  • 3

0 Answers0