mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26: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
|
||||
*/
|
||||
class LegacySessionAuth extends BaseAuthStrategy {
|
||||
constructor({ session, restartOnAuthFail }) {
|
||||
constructor({ session, restartOnAuthFail }={}) {
|
||||
super();
|
||||
this.session = session;
|
||||
this.restartOnAuthFail = restartOnAuthFail;
|
||||
|
||||
Reference in New Issue
Block a user