Skip to content

Commit ebe150f

Browse files
committed
return to base64 token
1 parent d56c94b commit ebe150f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

commit-msg-matcher/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31139,7 +31139,9 @@ async function requestIssue(ticket) {
3113931139
const response = await fetch(ticket.ticketUri(), {
3114031140
method: 'GET',
3114131141
headers: {
31142-
'Authorization': `${authMethod} ${authToken}`,
31142+
'Authorization': `${authMethod} ${Buffer.from(
31143+
authToken
31144+
).toString('base64')}`,
3114331145
'Accept': 'application/json'
3114431146
}
3114531147
});

commit-msg-matcher/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ async function requestIssue(ticket) {
4646
const response = await fetch(ticket.ticketUri(), {
4747
method: 'GET',
4848
headers: {
49-
'Authorization': `${authMethod} ${authToken}`,
49+
'Authorization': `${authMethod} ${Buffer.from(
50+
authToken
51+
).toString('base64')}`,
5052
'Accept': 'application/json'
5153
}
5254
});

0 commit comments

Comments
 (0)