🇮🇳India dixit.yiion Mehsana, Gujarat, India
this worked for me hope it helps!
🇮🇳India dixit.yiion Mehsana, Gujarat, India
You just need to add below code in your module file and it will extend expiration time
function your_module_name_jwt_auth_tokens_alter(array &$tokens, RouteMatchInterface $route_match, ContainerInterface $container) {
// Update the expiration time for the 'jwt' token.
if (isset($tokens['jwt'])) {
$tokens['jwt']->setExpiration(24 * 360000000000); // Set the expiration time to one hour from now.
}
}
🇮🇳India dixit.yiion Mehsana, Gujarat, India
Here i face the same issue and with some research its work for me hope its work for you.