new LegacySessionAuth(options)

Parameters

Name Type Optional Description

options

 

 

options

Values in options have the following properties:

Name Type Optional Description

restartOnAuthFail

 

 

Restart client with a new session (i.e. use null 'session' var) if authentication fails

session

 

 

Whatsapp session to restore. If not set, will start a new session

session.WABrowserId

 

 

session.WASecretBundle

 

 

session.WAToken1

 

 

session.WAToken2