Skip to content

Commit 62206a4

Browse files
anuraghazralencx
authored andcommitted
fix: auth token header (anuraghazra#1474)
1 parent c0030d3 commit 62206a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/fetchers/repo-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const fetcher = (variables, token) => {
3838
variables,
3939
},
4040
{
41-
Authorization: `bearer ${token}`,
41+
Authorization: `token ${token}`,
4242
},
4343
);
4444
};

src/fetchers/stats-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const totalCommitsFetcher = async (username) => {
6969
headers: {
7070
"Content-Type": "application/json",
7171
Accept: "application/vnd.github.cloak-preview",
72-
Authorization: `bearer ${token}`,
72+
Authorization: `token ${token}`,
7373
},
7474
});
7575
};

src/fetchers/top-languages-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
2929
variables,
3030
},
3131
{
32-
Authorization: `bearer ${token}`,
32+
Authorization: `token ${token}`,
3333
},
3434
);
3535
};

0 commit comments

Comments
 (0)