fix: Cannot destructure property 'session' of 'undefined' as it is undefined. (#1259)
This commit is contained in:
parent
6ab98a5365
commit
fc205ff530
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue