Skip to content

Commit

Permalink
doo not encode padding in tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukks committed Oct 8, 2024
1 parent 3269da3 commit 64fa920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotNut/Encoding/Base64UrlSafe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class Base64UrlSafe
public static string Encode(byte[] data)
{
return System.Convert.ToBase64String(data)
.TrimEnd(padding).Replace('+', '-').Replace('/', '_');
.TrimEnd(padding).Replace('+', '-').Replace('/', '_').TrimEnd(padding);
}

public static byte[] Decode(string base64)
Expand Down

0 comments on commit 64fa920

Please sign in to comment.