Base solution for your next web application
Open Closed

How to handle Control Token expiry for mobile and web seperately #11831


User avatar
0
rameshrubix created

JWT Token should not expire for mobile since the session should be maintain all the time. We use the same backend API code for web and mobile, The token generated for mobile should not expire until the user logs out by himself. It would be great if you can suggest us with a solution for achieving the same. Note : The token generated for web should get expired as usual.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rameshrubix

    A refresh token mechanism is implemented both for web and mobile. If you want to change this behaviour, you can create a new endpoint for mobile app and use it in your mobile app similar to TokenAuthController/Authenticate.