Skip to content

Commit

Permalink
Explain EnableRelaxedDecoding (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs authored Nov 18, 2024
1 parent 1c003bf commit c393286
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/Fido2.Models/Converters/Base64UrlConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ namespace Fido2NetLib;
/// </summary>
public sealed class Base64UrlConverter : JsonConverter<byte[]>
{
/// <summary>
/// If set to true, the converter will attempt to decode Base64 encoding if Base64Url decoding fails. Intended for fallback purposes only and should be used temporarily.
/// </summary>
public static bool EnableRelaxedDecoding { get; set; }

public override byte[] Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Expand Down

0 comments on commit c393286

Please sign in to comment.