mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 19:55:16 +00:00
fix: auth token header (#1474)
This commit is contained in:
parent
ecd7d98a3c
commit
798bf72dee
3 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ const fetcher = (variables, token) => {
|
|||
variables,
|
||||
},
|
||||
{
|
||||
Authorization: `bearer ${token}`,
|
||||
Authorization: `token ${token}`,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
|
|||
variables,
|
||||
},
|
||||
{
|
||||
Authorization: `bearer ${token}`,
|
||||
Authorization: `token ${token}`,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue