Wa-automate-nodejs: Feature: Simple Auth page

Created on 1 Jul 2020  Â·  5Comments  Â·  Source: open-wa/wa-automate-nodejs

A simple HTML page that is easily put into an iframe and allows scanning of the QR code, maybe shows some logs and session state.

PRIORITY enhancement

Most helpful comment

thanks for the suggestion deLuca. Will be working on the majority of these issues over the weekend. v2.0.0 of open-wa will be amazing!

All 5 comments

Maybe, total.js is a good way.
To make a auth page and show logs.

thanks for the suggestion deLuca. Will be working on the majority of these issues over the weekend. v2.0.0 of open-wa will be amazing!

@github-actions run


âš¡ Release! âš¡

(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i`);
exec(`npm run release-ci`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

Changelog

🚀 Release 1.9.97 (2020-07-09)

  • build(deps): bump puppeteer-extra from 3.1.9 to 3.1.12 #633
  • build(deps): bump puppeteer-extra-plugin-devtools from 2.2.8 to 2.2.11 #632
  • build(deps): bump puppeteer-extra-plugin-stealth from 2.4.9 to 2.4.13 #635
  • build(deps-dev): bump @types/node from 14.0.19 to 14.0.20 #634
  • build(deps-dev): bump @types/node from 14.0.18 to 14.0.19 #631
  • build(deps): bump chrome-launcher from 0.13.3 to 0.13.4 #630
  • build(deps-dev): bump @types/node from 14.0.14 to 14.0.18 #627
  • build(deps-dev): bump @types/express from 4.17.6 to 4.17.7 #628
  • build(deps-dev): bump auto-changelog from 2.1.0 to 2.2.0 #624
  • Release 1.9.97 cb6e8b8
  • Feature: Implemented pop up auth window #608 108ac2a
  • Better init logging c5bb467
  • optimize launch logo 7c6ebd4
  • Feature: Implemented skipSessionSave #606 58280c2
  • onStateChanged docs fix bdd7c75
  • Better error messages for sendMessage 29b9488
  • update supported WA version 1cc0c69
  • optimise business profie getter 3e66d69

In v1.9.97 you will now be able to use a pop up to authenticate the session or just check the start up logs.

https://open-wa.github.io/wa-automate-nodejs/interfaces/configobject.html#popup

...

//Open browser to see logs and QR code. Usually it will open on port 3000
create({
    popup: true
})

//or you can set your own preferred port. If the preferred port is busy, it will automatically find an open port
create({
    popup: 1234
})

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sandro-salles picture sandro-salles  Â·  4Comments

sandro-salles picture sandro-salles  Â·  4Comments

alishahlakhani picture alishahlakhani  Â·  4Comments

yoavmmn picture yoavmmn  Â·  5Comments

jersonjunior picture jersonjunior  Â·  6Comments