# Join a zoom meeting with authentication require using Meeting SDK

**URL:** <https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759>\
**Category:** Web\
**Created:** [August 22, 2023, 8:00am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759 "2023-08-22T08:00:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanhdd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thanhdd/32/51308_2.png) [@thanhdd](https://devforum.zoom.us/u/thanhdd)\
**Post date:** [August 22, 2023, 8:00am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/1 "2023-08-22T08:00:47Z")

</div>

**Description**  
We want to use Meeting SDK to join a Zoom Meeting with authentication require (allow specified domains). We followed [the instruction](https://developers.zoom.us/docs/meeting-sdk/auth/#join-meetings-and-webinars-with-the-meeting-sdk-jwt) and we used a ZAK as a note in the instruction (Note: Meeting SDK sessions with authentication require a ZAK token to join meetings) but we got the system error message “Not support start meeting via tokens”. We just want to join the meeting, not start it. Do you have any solution.

**Browser Console Error**

```auto
{
    type: "JOIN_MEETING_FAILED",
    reason: "Not support start meeting via tokens",
    errorCode: 200
}

```

**Which Web Meeting SDK version?**  
Knowing the version can help us to identify your issue faster. [e.g. 1.9.9]

**Meeting SDK Code Snippets**  
@zoomus/websdk 2.15.0

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Get an Access token using Server-to-Server OAuth
2. Get a ZAK token using Meeting API
3. Join a meeting via Meeting SDK using ZAK token

```auto
client.join({
    signature: "",
    sdkKey: "",
    meetingNumber: meetingNumber,
    password: passWord,
    userName: 'Bot',
    userEmail: '',
    tk: '',
    zak: ''
}).then(() => {
    console.log("Join Success");
}).catch(e => {
    console.log(e);
});

```

**Troubleshooting Routes**  
The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom)).

**Device (please complete the following information):**

- Device: Macbook Air
- OS: macOS 13.4.1
- Browser: Firefox
- Browser Version: 116.0.3 (64-bit)

---

<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:** [August 30, 2023, 8:52am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/2 "2023-08-30T08:52:36Z")

</div>

@thanhdd

Note: Meeting SDK sessions with authentication require a ZAK token to join meetings.

Could you share how you are getting the ZAK token of the users?  
Could you also share a sample of your JWT Token which is used to authenicate the SDK?

---

<div class="post-metadata">

**Author:** ![thanhdd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thanhdd/32/51308_2.png) [@thanhdd](https://devforum.zoom.us/u/thanhdd)\
**Post date:** [August 31, 2023, 2:56am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/3 "2023-08-31T02:56:48Z")

</div>

### Could you share how you are getting the ZAK token of the users?

- Step 1: Get an Access token using Server-to-Server OAuth

```auto
curl -X POST https://zoom.us/oauth/token -d 'grant_type=account_credentials' -d 'account_id={accountID}' -H 'Host: zoom.us' -H 'Authorization: Basic Base64Encoded(clientId:clientSecret)'

```

- Step 2: Get a ZAK token using Meeting API

```auto
curl -X GET 'https://api.zoom.us/v2/users/me/token?type=zak' -H 'Authorization: Bearer <access_token from Step 1>'

```

- Step 3: Join a meeting via Meeting SDK using ZAK token

```auto
client.join({
    signature: signature,
    sdkKey: "",
    meetingNumber: meetingNumber,
    password: passWord,
    userName: 'Bot',
    userEmail: '',
    tk: '',
    zak: <token from Step 2>
}).then(() => {
    console.log("Join Success");
}).catch(e => {
    console.log(e);
});

```

### Could you also share a sample of your JWT Token which is used to authenicate the SDK?

It is a sample JWT Token (signature)

```auto
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJZSGR6Y2ZiNFRkT2s0ZHNzaVhfSnNBIiwibW4iOiI4NDQ1NjE2MjMzMiIsInJvbGUiOjAsImlhdCI6MTY5MzQ1MDM2OSwiZXhwIjoxNjkzNDU3NTY5LCJhcHBLZXkiOiJZSGR6Y2ZiNFRkT2s0ZHNzaVhfSnNBIiwidG9rZW5FeHAiOjE2OTM0NTc1Njl9.OU2Nw84nLhm33TxNZIOAcomhgPr6R098xXL7yql43r4

```

---

<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:** [August 31, 2023, 3:51am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/4 "2023-08-31T03:51:22Z")

</div>

@thanhdd ,

Could you try leaving the ZAK token blank for now?  
You should be re-directed to this UI to sign in.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/0/20a060e3bbd75be60b1bb357bc70097a8ff4de38.png)

---

<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:** [August 31, 2023, 5:13am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/5 "2023-08-31T05:13:31Z")

</div>

@thanhdd ，we will be supporting “meeting which requires authentication” using (Web SDK + ZAK) in the upcoming version update.

---

<div class="post-metadata">

**Author:** ![thanhdd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thanhdd/32/51308_2.png) [@thanhdd](https://devforum.zoom.us/u/thanhdd)\
**Post date:** [August 31, 2023, 8:46am UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/6 "2023-08-31T08:46:21Z")

</div>

@chunsiong.zoom thank you a lot for above information, I’m looking forward to that new version (the lastest version of @zoomus/websdk is 2.15.2)

---

<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:** [September 30, 2023, 6:46pm UTC](https://devforum.zoom.us/t/join-a-zoom-meeting-with-authentication-require-using-meeting-sdk/93759/7 "2023-09-30T18:46:41Z")

</div>

Closed on September 30, 2023, 6:46pm UTC

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