Skip to content

Commit c817dcb

Browse files
committed
un-stringify body
1 parent 4af7c7d commit c817dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/oidc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ async function oidc ({ packageName, registry, opts, config }) {
106106
const response = await npmFetch.json(new URL('/-/npm/v1/oidc/token/exchange', registry), {
107107
...opts,
108108
method: 'POST',
109-
body: JSON.stringify({
109+
body: {
110110
package_name: packageName,
111111
id_token: idToken,
112-
}),
112+
},
113113
})
114114

115115
if (!response?.token) {

0 commit comments

Comments
 (0)