Get Session Token Browser returns incorrect tokens
See original GitHub issueDescription
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
getCurrentSession
and 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())
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (1 by maintainers)
Top Results From Across the Web
GetSessionToken - AWS Security Token Service
Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret...
Read more >Troubleshoot Invalid Token Errors - Auth0
If you don't ask for an access token when authenticating, you will receive the following error: The id_token cannot be validated because it...
Read more >How to get session token form url? - java - Stack Overflow
You can get the session token from the cookie of the browser. You can, find the cookie settings->advanced settings->privacy->content ...
Read more >Access Token Response - OAuth 2.0 Simplified
If the request for an access token is valid, the authorization server needs to generate an access token (and optional refresh token) and...
Read more >How to Store Session Tokens in a Browser (and the impacts of ...
/api/login - this generates and returns a “session token” in either a ... You can verify this by clicking “Login and get a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same error, I only receive a “WABrowserId”, but not the rest.
all basic config multidevice: true
No folder tokens is create ever… no where…