-1

I am using Symfony for the back end and this for authenticating the user. When I close the browser, and open the application and make a call to web service, the token is invalid.

How do I make the token remain valid even after closing the browser.

Saveen
  • 4,120
  • 14
  • 38
  • 41
Dwigh
  • 441
  • 5
  • 19
  • Could you please also add your configuration for LexikJWTAuthenticationBundle and in your `security.yaml`? Maybe this will help us spot any errors – dbrumann Jun 06 '19 at 05:23
  • i dont get your question. You want the token to stay valid forever? when you close the browser, your session gets removed or reset, so token is invalidated, thats how it s supposed to be – Nodir Rashidov Jun 06 '19 at 05:32

1 Answers1

-1

for reason of security, i image the token was linked to your ip, or any kind of information or simply the token expire, so you need to refresh this token, for example, autologin, or similar, if you are using JWT see this docs and using JWTRefreshTokenBundle.