Skip to content

Commit 6d309e3

Browse files
committed
auth token yet to be generated
1 parent d20932d commit 6d309e3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

controllers/users.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,6 @@ const filterUsers = async (req, res) => {
466466

467467
// one time script function to perform the migration - adding github_user_id field to the document
468468
const migrate = async (req, res) => {
469-
// pat yet to be generated
470-
const authToken = `${config.get("githubOauth.patToken")}`;
471-
// converting the `authToken` string into Base64 format
472-
const encodedToken = Buffer.from(`${authToken}`).toString("base64");
473469
const usersNotFound = [];
474470
let countUserNotFound = 0;
475471
try {
@@ -491,7 +487,7 @@ const migrate = async (req, res) => {
491487
.get(`https://api.github.com/users/${githubUsername}`, {
492488
headers: {
493489
"Content-Type": "application/json",
494-
auth: `Bearer ${encodedToken}`,
490+
auth: `Bearer <Auth Token>`,
495491
},
496492
})
497493
.then((response) => {

0 commit comments

Comments
 (0)