mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 12:39:20 +00:00
fix: Cannot destructure property 'session' of 'undefined' as it is undefined. (#1259)
This commit is contained in:
@@ -14,7 +14,7 @@ const BaseAuthStrategy = require('./BaseAuthStrategy');
|
|||||||
* @param {string} options.session.WAToken2
|
* @param {string} options.session.WAToken2
|
||||||
*/
|
*/
|
||||||
class LegacySessionAuth extends BaseAuthStrategy {
|
class LegacySessionAuth extends BaseAuthStrategy {
|
||||||
constructor({ session, restartOnAuthFail }) {
|
constructor({ session, restartOnAuthFail }={}) {
|
||||||
super();
|
super();
|
||||||
this.session = session;
|
this.session = session;
|
||||||
this.restartOnAuthFail = restartOnAuthFail;
|
this.restartOnAuthFail = restartOnAuthFail;
|
||||||
|
|||||||
Reference in New Issue
Block a user