0

I’m developing a front web app with angular version 12 which communicates with an API based on Symfony version 5. My API use JWTs (JSON Web Tokens) to authorize users from my front web app to communicates with the API (in order to retrieve some data). When the user login, a JWT is created and send in the response of the login call API method. But the problem is that I don’t know where to store (on a safety way) this JWT during the session of the user on the web app. I think about local storage but found on many forum that it is a bad idea. Does someone has a solution for this ? Could be very helpful for me. Thank you in advance.

naveen
  • 51,042
  • 46
  • 158
  • 241
briandev
  • 21
  • 3

0 Answers0