Skip to content

Commit

Permalink
Fix persisting antiforgery token for WASM prerendered
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWise committed Sep 24, 2023
1 parent 8ad0574 commit 63e9553
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 63e9553

Please sign in to comment.