Mehsana, Gujarat, India
Account created on 6 September 2022, over 2 years ago
#

Recent comments

🇮🇳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.

Production build 0.71.5 2024