Skip to content

Commit

Permalink
fix: ensure issueRequestObject does not mutate input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Apr 27, 2022
1 parent 6755648 commit 7b62b82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,7 @@ export async function issueRequestObject(
if (!(parameters instanceof URLSearchParams)) {
throw new TypeError('"parameters" must be an instance of URLSearchParams')
}
parameters = new URLSearchParams(parameters)

const { key, kid } = getKeyAndKid(privateKey)
if (!isPrivateKey(key)) {
Expand Down

0 comments on commit 7b62b82

Please sign in to comment.