Fix bug where JSON-initialized claims don't emit proper B64 when stringified.

This commit is contained in:
jdb committed 2021-12-25 23:13:11 -06:00
1 parent 60f52cb22f
commit 20de51281e
3 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ proc initJwtClaims*(n: JsonNode): JwtClaims =
## Create a JwtClaims from a given set of claims as a JsonNOde
return JwtClaims(
rawB64: $n,
rawB64: b64UrlEncode($n),
json: n,
iss: n.optStrVal("iss"),
sub: n.optStrVal("sub"),