I’m adding authentication with Entra ID (previously Azure AD) for Blazor Hybrid (.NET 8 MAUI + Blazor). I’m having a lot of trouble getting it to work smoothly. The majority of the code is from this Microsoft’s guide.
One of the issues is that the token takes an hour to expire. I’d like to reduce that time for testing. I want to quickly test how my app will react to an expired token and if it will automatically request a new one.
I know in .NET MVC’s Program.cs file I can set the cookie expiration, but I’m unable to find an equivalent option in Blazor Hybrid’s authentication setup.
How can I modify the token expiration date?