harit
1 year ago

JWT token expire in website

Posted 1 year ago by harit

I'm using Tymon JWT package for authenticating my APIs for website. But I found, the token is expiring immediately when its life time expires. Sometimes it will expire in the middle when a user is using the application. Then the user need to re login to the system. But as per the user, he is active on the application and asking to relogin really hesitate him. I have tried different tricks like increase the life time of token, increase refresh token time etc. But when ever the time reaches the token become inactive irrespective the user is currently active on the system or not. Do anyone have better solution for this problem?

Is Laravel Passport can overcome the above issue? If I want to use passport, Is Implicit Grant Tokens is suitable here?

Please sign in or create an account to participate in this conversation.