Skip to content

Commit 24d7c9f

Browse files
authored
Fix headers variable initialization (#71)
1 parent 696009d commit 24d7c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async function fetchToken(wwwAuthenticate, scope, authorization) {
136136
if (scope) {
137137
url.searchParams.set("scope", scope);
138138
}
139-
headers = new Headers();
139+
const headers = new Headers();
140140
if (authorization) {
141141
headers.set("Authorization", authorization);
142142
}

0 commit comments

Comments
 (0)