Skip to content

Commit

Permalink
fix: auth token header (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored Nov 25, 2021
1 parent ecd7d98 commit 798bf72
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

1 comment on commit 798bf72

@vercel
Copy link

@vercel vercel bot commented on 798bf72 Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.