fix: auth token header (#1474)

This commit is contained in:
Anurag Hazra
2021-11-25 21:12:27 +05:30
committed by GitHub
parent ecd7d98a3c
commit 798bf72dee
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};
+1 -1
View File
@@ -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}`,
},
});
};
+1 -1
View File
@@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};