Skip to content

Commit 3faef3c

Browse files
committed
👌IMPROVE: remove password
1 parent 311f3b3 commit 3faef3c

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎utils/authentication.js‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = async () => {
77
if (auth.Authorization === "") {
88
io.write(
99
red(
10-
"\n> This CLI will work best if you enter your GitHub Access Token, Username & Password. THIS IS ONE TIME THING.\n"
10+
"\n> This CLI will work best if you enter your GitHub Access Token & Username. THIS IS ONE TIME THING.\n"
1111
)
1212
);
1313
io.write(
@@ -19,19 +19,15 @@ module.exports = async () => {
1919
io.write(yellow("Token: "));
2020
const token = await io.read();
2121

22-
const userToken = `module.exports = {
23-
Authorization: "Token ${token}",
24-
}`;
25-
2622
io.write(yellow("GitHub Username: "));
2723
const username = await io.read();
2824

29-
io.write(yellow("GitHub Password: "));
30-
const password = await io.read();
25+
const userToken = `module.exports = {
26+
Authorization: "${username}:${token}",
27+
}`;
3128

3229
const userData = `module.exports = {
3330
username: "${username}",
34-
password: "${password}",
3531
}`;
3632

3733
fs.writeFile("./utils/auth.js", userToken, (err) => {});

0 commit comments

Comments
 (0)