# We don't support this login way' message, Web SDK for Bot

**URL:** <https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291>\
**Category:** Web\
**Tags:** api, sdk, sdk-jwt\
**Created:** [March 8, 2024, 10:15am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291 "2024-03-08T10:15:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [March 8, 2024, 10:15am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/1 "2024-03-08T10:15:04Z")

</div>

I am using Web SDK in my application. The SDK is used to create a bot and enable it to join the meetings. Since app is unapproved, it only joins meetings within the registered account. I have submitted app on marketplace and Zoom is testing it out with their review accounts but bot isn’t joining meetings. Its giving the following error:

 ![invalid message (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/5/f5b504a6f3b2508579d01da15cce09f8979ae1a6.png)  
**We don’t support this login way’ message.**  
Why is this issue occurring and how can I resolve it,

my code is this:

```auto
var authEndpoint = '/api/zoom/jwt';
var sdkKey = ''; // Ensure this is the SDK Key
var leaveUrl = '' // Adjust according to your app's routing

// This function will be called on form submission
function joinMeetingWithDetails() {
    var meetingNumber = document.getElementById('meeting-id').value;
    var passWord = document.getElementById('passcode').value;
    var userName = ''; // Or any logic to set a user name
    var role = 1; // Adjust based on user's role, i have tested it with both 0 and 1

    getSignature(meetingNumber, role, passWord, userName);
}
function getSignature(meetingNumber, role, passWord, userName) {
  fetch(authEndpoint, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      meetingNumber: meetingNumber,
      role: role
    })
  }).then(response => response.json())
    .then(data => {
      console.log(data);
      startMeeting(data.signature, meetingNumber, passWord, userName);
    }).catch(error => {
      console.error(error);
    });
}

function startMeeting(signature, meetingNumber, passWord, userName) {
  ZoomMtg.setZoomJSLib("https://jssdk.zoomus.cn/3.1.2/lib", "/av");
  ZoomMtg.preLoadWasm();
  ZoomMtg.prepareWebSDK();
  ZoomMtg.init({
    leaveUrl: leaveUrl,
    isSupportAV: true,
    success: (success) => {
      ZoomMtg.join({
        signature: signature,
        meetingNumber: meetingNumber,
        userName: userName,
        sdkKey: sdkKey,
        passWord: passWord,
        success: (success) => {
          console.log('Join meeting success', success);
        },
        error: (error) => {
          console.error('Error joining meeting', error);
        },
      });
    },
    error: (error) => {
      console.error('Error initializing Zoom SDK', error);
    }
  });
}

```

```auto
@app.route('/api/zoom/jwt', methods=['POST'])
def generate_jwt():
    client_id = os.getenv('ZOOM_SDK_KEY')
    client_secret = os.getenv('ZOOM_SDK_SECRET')
    data = request.get_json()
    meeting_number = data['meetingNumber']
    role = data['role'] # 0 for participant, 1 for host

    # Define token expiration times
    iat = int(time.time())
    exp = iat + 7200 # Token valid for 2 hours

    # Create JWT payload
    payload = {
        'sdkKey': client_id,
        'mn': meeting_number,
        'role': role,
        'iat': iat,
        'exp': exp,
        'tokenExp': exp
    }

    signature = jwt.encode(payload, client_secret, algorithm='HS256')

    return jsonify({'signature': signature if isinstance(signature, str) else signature.decode('utf-8')})

```

the code is working and generating jwt tokens

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 11, 2024, 4:53am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/2 "2024-03-11T04:53:23Z")

</div>

@management1 , could you check if **We don’t support this login way** is a custom error message from your side?

By the way, you will need to ensure role is set to 0 (in both the signature and join paramaters). We do not support starting external meeting.

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [March 11, 2024, 7:02am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/3 "2024-03-11T07:02:46Z")

</div>

The message isn’t custom on our side.  
And we have explicitly set the role as 0.  
Can you help me further with it.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 11, 2024, 7:07am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/4 "2024-03-11T07:07:46Z")

</div>

@management1 can you capture a tracking ID for me?

 ![Screenshot 2023-12-15 at 3.24.12 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/7/678e8e99dc8f01273b93c2742216bb98dbf10399.png)

1. On your browser, goto console (F12), and goto network tab
2. After loading the page, you should see a request made to something like info?meeting…
3. In the header window, look for x-zm-trackingid. Pass me the tracking ID on the right

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [March 11, 2024, 7:40am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/5 "2024-03-11T07:40:55Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/1/713b72c2690eb81dc05f3969d3556ef51b4e08dc.png)

this is the tracking id

@chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 11, 2024, 10:17am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/6 "2024-03-11T10:17:55Z")

</div>

@management1 I’ll pm you for some details

---

<div class="post-metadata">

**Author:** ![jake-recall-ai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jake-recall-ai/32/57607_2.png) [@jake-recall-ai](https://devforum.zoom.us/u/jake-recall-ai)\
**Post date:** [March 15, 2024, 6:56pm UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/7 "2024-03-15T18:56:50Z")

</div>

Hey Ashlar!

We run meeting bots at scale using the Web SDK and have come across a wide variety of errors, but we haven’t ever come across this specific issue before.

How we typically debug these sort of things is by inspecting the HTTP request/responses from Zoom. What do you see in the response? This might provide some additional info as to what’s going on here.

Hopefully that helps.

Another alternative is to use [Recall.ai](https://www.recall.ai/)for your meeting bots instead. It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video from meetings without you needing to spend months to build, scale and maintain these bots.

Let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 15, 2024, 4:57am UTC](https://devforum.zoom.us/t/we-dont-support-this-login-way-message-web-sdk-for-bot/105291/8 "2024-04-15T04:57:27Z")

</div>

Closed on April 15, 2024, 4:57am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
