File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) => { } ) ;
You can’t perform that action at this time.
0 commit comments