Skip to content

Commit c393286

Browse files
authored
Explain EnableRelaxedDecoding (#578)
1 parent 1c003bf commit c393286

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Src/Fido2.Models/Converters/Base64UrlConverter.cs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ namespace Fido2NetLib;
1212
/// </summary>
1313
public sealed class Base64UrlConverter : JsonConverter<byte[]>
1414
{
15+
/// <summary>
16+
/// 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.
17+
/// </summary>
1518
public static bool EnableRelaxedDecoding { get; set; }
1619

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

0 commit comments

Comments
 (0)