Skip to content

Commit eb911cd

Browse files
committed
auth token
1 parent a8b5526 commit eb911cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/routes/token/get.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default async (req, res, next) => {
1515
ORG_NAME,
1616
GITHUB_API,
1717
GITHUB_AUTH_URL,
18+
GITHUB_AUTH_TOKEN,
1819
TOKEN_SERVICE_OPEN,
1920
TOKEN_SERVICE_SECRET,
2021
} = process.env;
@@ -44,7 +45,7 @@ export default async (req, res, next) => {
4445
try {
4546
console.log('request: ', {
4647
method: 'POST',
47-
uri: GITHUB_AUTH_URL,
48+
uri: GITHUB_AUTH_TOKEN,
4849
body: {
4950
client_id: TOKEN_SERVICE_OPEN,
5051
client_secret: TOKEN_SERVICE_SECRET,
@@ -62,7 +63,7 @@ export default async (req, res, next) => {
6263
});
6364
const answer = await request({
6465
method: 'POST',
65-
uri: GITHUB_AUTH_URL,
66+
uri: GITHUB_AUTH_TOKEN,
6667
body: {
6768
client_id: TOKEN_SERVICE_OPEN,
6869
client_secret: TOKEN_SERVICE_SECRET,

0 commit comments

Comments
 (0)