Skip to content

Commit

Permalink
Fix headers variable initialization (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjianai authored Oct 8, 2024
1 parent 696009d commit 24d7c9f
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 @@ -136,7 +136,7 @@ async function fetchToken(wwwAuthenticate, scope, authorization) {
if (scope) {
url.searchParams.set("scope", scope);
}
headers = new Headers();
const headers = new Headers();
if (authorization) {
headers.set("Authorization", authorization);
}
Expand Down

0 comments on commit 24d7c9f

Please sign in to comment.