Hi @Himabindeswara Rao Tammireddy
Thank you for post!
To setup token expiration you have to specify it on token creation:
new JwtSecurityToken(
...
expires: DateTime.UtcNow.AddMinutes(90),
....);
Also, you can Configure lifetime of ID and Access Tokens and refresh token in your b2c tenant
for more readings Configure token lifetime
please refer the below posts which is similar to your ask
https://learn.microsoft.com/en-us/answers/questions/845791/jwt-token-expiration-and-authorization
https://learn.microsoft.com/en-us/answers/questions/1187991/jwtsecuritytoken-date-time-problem
Hope this helps. Do let us know if you any further queries.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.