Skip to content

Commit 7a2bcbe

Browse files
committed
Fix URLSearchParams import issue
- Replace URLSearchParams with manual query string construction - Fix Node.js compatibility issue in deployment script - Use template literals for URL-encoded form data
1 parent 9869326 commit 7a2bcbe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/deploy-chrome-simple.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ try {
7878
headers: {
7979
'Content-Type': 'application/x-www-form-urlencoded'
8080
},
81-
body: new URLSearchParams({
82-
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
83-
assertion: jwt
84-
})
81+
body: `grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=${jwt}`
8582
});
8683

8784
if (!tokenResponse.ok) {

0 commit comments

Comments
 (0)