Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inquirer.prompt(questions).then(answers => {
- axios.post("http://v-chain.vn/accountservice/login", answers)
- .then(res => {
- var a = answers;???
- token = res.data.data.token;
- if (token === undefined) {
- console.log(res.data.data.message)
- } else {
- fs.writeFile("token", token, function (err) {
- if (err) return console.log(err);
- });
- }
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement