Skip to content

Commit 90ab849

Browse files
author
Steve Winton
authored
fix: use 'Bearer' authentication scheme to transmit token (#48)
1 parent 1ef7967 commit 90ab849

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/detail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = async (request, response) => {
9797
method,
9898
url,
9999
headers: {
100-
authorization: `token ${token}`,
100+
authorization: `bearer ${token}`,
101101
accept: "application/vnd.github.v3+json",
102102
"user-agent": `octokit.rest`
103103
},

public/detail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function updateRequestPreview(event) {
2121
method,
2222
url,
2323
headers: {
24-
authorization: `token ${token}`,
24+
authorization: `bearer ${token}`,
2525
accept: "application/vnd.github.v3+json",
2626
"user-agent": `octokit.rest`
2727
},

0 commit comments

Comments
 (0)