File: Internal\IAntiforgeryTokenSerializer.cs
Web Access
Project: src\src\Antiforgery\src\Microsoft.AspNetCore.Antiforgery.csproj (Microsoft.AspNetCore.Antiforgery)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Antiforgery;
 
// Abstracts out the serialization process for an antiforgery token
internal interface IAntiforgeryTokenSerializer
{
    AntiforgeryToken Deserialize(string serializedToken);
    string Serialize(AntiforgeryToken token);
}