Skip to content

Commit

Permalink
fix: auth token header (anuraghazra#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored and Kab1r committed Apr 4, 2022
1 parent 69f1ca7 commit a03566d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fetchers/repo-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/fetchers/stats-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const totalCommitsFetcher = async (username) => {
headers: {
"Content-Type": "application/json",
Accept: "application/vnd.github.cloak-preview",
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/fetchers/top-languages-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};
Expand Down

0 comments on commit a03566d

Please sign in to comment.