Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const VK = require('vk-io');
- const arr = [
- ['login', 'pass'],
- ['login', 'pass']
- ]
- const user = [];
- for (let i = 0; i < arr.length; i++) {
- const phone = arr[i][0];
- const pass = arr[i][1];
- user[i] = new VK({
- phone: phone,
- pass: pass
- });
- user[i].auth.iphone().run()
- .then((account) => {
- user[i].setToken(account.token);
- console.log(account.token);
- })
- .catch((err) => {
- console.error(err);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement