diff --git a/src/Components/Shared/src/DefaultAntiforgeryStateProvider.cs b/src/Components/Shared/src/DefaultAntiforgeryStateProvider.cs index 0c8506ba70f7..43c5b3c25f84 100644 --- a/src/Components/Shared/src/DefaultAntiforgeryStateProvider.cs +++ b/src/Components/Shared/src/DefaultAntiforgeryStateProvider.cs @@ -23,7 +23,7 @@ public DefaultAntiforgeryStateProvider(PersistentComponentState state) // don't have access to the request. _subscription = state.RegisterOnPersisting(() => { - state.PersistAsJson(PersistenceKey, _currentToken); + state.PersistAsJson(PersistenceKey, GetAntiforgeryToken()); return Task.CompletedTask; });