question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Session Token Browser returns incorrect tokens

See original GitHub issue

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

  1. Create a new venom instance with multidevice: true
  2. 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:closed
  • Created 2 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Ramstin13commented, Mar 14, 2022

same error, I only receive a “WABrowserId”, but not the rest.

all basic config multidevice: true

0reactions
luiscurielcommented, Apr 21, 2022

No folder tokens is create ever… no where…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found