fix(Client): createToken throw error Invalid URL

This commit is contained in:
March 7th
2022-08-23 23:49:22 +07:00
parent 30a8446c18
commit 468416adb6
3 changed files with 3 additions and 3 deletions

View File

@@ -454,7 +454,7 @@ class Client extends BaseClient {
failIfError: false,
});
// Step 2: Add event
QR.on('ready', async url => {
QR.on('ready', async (_, url) => {
await this.remoteAuth(url, true);
}).on('finish', (user, token) => {
resolve(token);