Skip to content

Instantly share code, notes, and snippets.

View mreinhart2805's full-sized avatar

Marcus Reinhart mreinhart2805

  • Regiocast GmbH & Co. KG
  • Germany, Kiel
View GitHub Profile
public class RevalidatingAuthenticationStateProvider : AuthenticationStateProvider, IDisposable
{
private static TimeSpan RefreshInterval = TimeSpan.FromMinutes(30);
private readonly CancellationTokenSource _cts;
private ClaimsPrincipal _currentUser;
public RevalidatingAuthenticationStateProvider(SignInManager<IdentityUser> signInManager)
{
_cts = new CancellationTokenSource();