venom: Get Session Token Browser returns incorrect tokens
Description
Whenever I retrieve the session tokens with the getCurrentSession method and multidevice mode is true, I only receive a “WABrowserId”, but not the rest of the necessary tokens.
Environment
- Venom version(s): 4.0.9
- Browser: Chromium
- OS: Ubuntu (Running on WSL)
- Node version: 16.14.0
Steps to Reproduce
- Create a new venom instance with
multidevice: true - Call
getCurrentSessionand check the returned payload
Your Code
const client = await create(
'venom-api-session',
VenomBot.handleQrCode,
undefined,
{
// chrome config
multidevice: true,
disableSpins: true,
headless: true,
// disable qr code logging
logQR: false
},
session
)
const details = await client.getHostDevice()
VenomBot.host_number = (details.id as unknown as Id)._serialized
if (!config.isDevelopment)
await VenomBot.saveSession(await client.getSessionTokenBrowser())
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15
same error, I only receive a “WABrowserId”, but not the rest.
all basic config multidevice: true