I’m looking at adding an option to alert users when their session is about to expire, allowing them to extend their session should they choose so. The application is a Blazor WebAssembly application, so it could be C# (preferable) or JS code.
I’ve found some information on JS option using getTokenSilently
but I’m not using JS SDK, but .NET. Auth and Management SDKs.
Alternatively, I considered looking at the information stored in the JWT token as expires_at
and alerting based on the expiration date/time found in the token by calling the app’s server side.
I would appreciate pointers in the right direction on how to build this feature. Thank you.