feature for configurable autoLogin and switchAccount
Created by: alamusi
Provide Your Network Information
-
Where is the location of your server? (i.e. City, or In/Out China) North America
-
Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using? AWS
npm run doctor
or wechaty run doctor
(for docker user), paste output here
Run wechaty@0.14.0 doctor /wechaty npm run check-node-version && ts-node bin/doctor
wechaty@0.14.0 check-node-version /wechaty check-node-version --node ">= 8.5"
Wechaty Doctor
- Wechaty version: #git[32b624e8]
- Linux x64 version 4.4.0-1054-aws memory 963/7478 MB
- Docker: true
- Node version: v9.11.1
- Tcp IPC TEST: PASS
Expected behavior
Add configurable element to Wechaty.instance({}) to control the default init behaviour:
- autoAogin (fires the login event and ask user to confirm login on his/her phone)
- switchAccount (fires scan event and ask user to scan the QR code)
Actual behavior
puppet always calls clickSwitchAccount() per implementation on issue #636 (closed)