Skip to content

Commit

Permalink
privatekey is empty string if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed Mar 14, 2023
1 parent 7a1b9f3 commit 3ba4cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/maskinporten-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const generateMaskinportenGrant = options => {
jti: nanoid()
}

return sign(payload, { key: certificate.key, passphrase: options.privateKeyPassphrase }, jwtOptions)
return sign(payload, { key: certificate.key, passphrase: options.privateKeyPassphrase || '' }, jwtOptions)
}

/**
Expand Down

0 comments on commit 3ba4cbb

Please sign in to comment.