Skip to content

Commit

Permalink
Merge pull request #5 from phebert5009/removePayloadPadding
Browse files Browse the repository at this point in the history
Use URLSafeBase64 to encode Payload
  • Loading branch information
burner authored Jul 7, 2023
2 parents 992eeb2 + a986219 commit 2783826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fastjwt/jwt.d
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void payloadToBase64(Out)(ref Out output, const(Json) payload) {
StringBuffer jsonString;
auto w = jsonString.writer();
writeJsonString(w, payload);
Base64.encode(jsonString.getData!(ubyte[])(), output.writer());
URLSafeBase64.encode(jsonString.getData!(ubyte[])(), output.writer());
}

void payloadToBase64(Out,Args...)(ref Out output, Args args)
Expand Down

0 comments on commit 2783826

Please sign in to comment.