Fix bug where JSON-initialized claims don't emit proper B64 when stringified.
This commit is contained in:
1 parent
60f52cb22f
commit
20de51281e
3 files changed
+13
-2
No files matched your search
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user