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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};

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}`,
},
});
};

View file

@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
variables,
},
{
Authorization: `bearer ${token}`,
Authorization: `token ${token}`,
},
);
};