Back to Whatsapp Web Js

whatsapp

docs/LegacySessionAuth.html

1.34.7662 B
Original Source

new LegacySessionAuth(options)

Parameters

NameTypeOptionalDescription

options

|

|

|

options

Values in options have the following properties:

NameTypeOptionalDescription

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

|

|

| |

|