forked from mirrored/github-stats-extended
fix: auth token header (#1474)
This commit is contained in:
1 parent
ecd7d98a3c
commit
798bf72dee
3 files changed
+3
-3
No files matched your search
@@ -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}`,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user