Skip to content

Commit

Permalink
argument name change
Browse files Browse the repository at this point in the history
  • Loading branch information
akdombrowski committed Apr 23, 2021
1 parent 22caa36 commit 2865aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export const createHeaderPayload = (header, payload) => {
export const base64URLEncode = (jsonObject) => {
if (Buffer.isEncoding("base64url")) {
// not a string. convert to string
const stringifyHeader = JSON.stringify(jsonPayload);
const stringifyHeader = JSON.stringify(jsonObject);
// headerBase64URL = base64url.encode(stringifyHeader);
const payloadBase64URL = Buffer.from(stringifyHeader, "ascii").toString(
"base64url"
Expand Down

0 comments on commit 2865aa2

Please sign in to comment.