# Getting Null value when decode JWT Token

**URL:** <https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459>\
**Category:** iOS\
**Created:** [April 1, 2020, 12:19pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459 "2020-04-01T12:19:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 1, 2020, 12:19pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/1 "2020-04-01T12:19:41Z")

</div>

**Description**  
Took the JWT Token from the App Credentials. I have attached in the screenshot. I checked it in [jwt.io](http://jwt.io) for validating, there it’s showing Invalid JWT token error. I am not getting token in the following API also,

[https://api.zoom.us/v2/users/developscriptsllc@gmail.com/token?type=token&access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOm51bGwsImlzcyI6IkgzZzc5ZzRMUWVteElKdldYTjRnRmciLCJleHAiOjE1ODU3Mzk3NTAsImlhdCI6MTU4NTczNDM1MH0.W8rG98bOlqp4n0Jru6UCbJF1CQeczZ2E\_u-H\_TUELww](https://api.zoom.us/v2/users/developscriptsllc@gmail.com/token?type=token&access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOm51bGwsImlzcyI6IkgzZzc5ZzRMUWVteElKdldYTjRnRmciLCJleHAiOjE1ODU3Mzk3NTAsImlhdCI6MTU4NTczNDM1MH0.W8rG98bOlqp4n0Jru6UCbJF1CQeczZ2E_u-H_TUELww)

 ![Screenshot 2020-04-01 at 5.48.15 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2ebd7133e2145ffb91bc43e3764b31a014cd376a.png)

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 1, 2020, 12:20pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/2 "2020-04-01T12:20:19Z")

</div>

![Screenshot 2020-04-01 at 5.10.57 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1157f9ae1f50d28e9d30b097dc6d5e1009218105.png)

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 1, 2020, 12:20pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/3 "2020-04-01T12:20:55Z")

</div>

![Screenshot 2020-04-01 at 5.01.01 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9258f8ac4ac10ccc2ecff199a3ce600a476d8752.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 1, 2020, 8:49pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/4 "2020-04-01T20:49:56Z")

</div>

Hey @developscriptsllc,

Can you try regenerating your API Secret and try again?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 2, 2020, 4:29am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/5 "2020-04-02T04:29:05Z")

</div>

@tommy Thanks for the reply, i tried regenerating API Secret, but i am getting the same error. I am attaching thr screenshot also.

I am using Mobile SDK for iOS, joining a Meeting is working perfectly. Now I’m stuck in the Start a Meeting, kindly help on this.

 ![Screenshot 2020-04-02 at 9.50.47 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/35dc21a4593f2e8cfe50bb07ce2179a9906ef18f.png)

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 2, 2020, 4:29am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/6 "2020-04-02T04:29:39Z")

</div>

![Screenshot 2020-04-02 at 9.52.11 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2d3a5602f43f693fdec29a143306b4db3bc29ef5.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 2, 2020, 7:39am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/7 "2020-04-02T07:39:57Z")

</div>

Hey @developscriptsllc,

Reassigning to @carson.zoom for Mobile SDK.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 4, 2020, 3:45am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/8 "2020-04-04T03:45:58Z")

</div>

Hello @carson.zoom any updates on this?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 6, 2020, 8:55pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/9 "2020-04-06T20:55:56Z")

</div>

Hi [developscriptsllc](https://devforum.zoom.us/u/developscriptsllc),

Thanks for using Zoom SDK. If you trying to use Zoom token and Zoom access token to start a meeting, you may follow the instruction here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/start-join-meeting/api-user/authentication](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/start-join-meeting/api-user/authentication) to authenticate with Zoom API and use the token to start a meeting. Our demo app also has this implementation: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how\_to\_start\_join\_meeting/start\_with\_rest\_api\_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/start_with_rest_api_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 7, 2020, 4:22am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/10 "2020-04-07T04:22:01Z")

</div>

@carson.zoom i am already following the documentation, to generate Zoom Token and ZAK i need a JWT token. In my question i said, the JWT token provided in the App Credentials is wrong. That’s why i am not able to the Zoom token.

If you see the screenshots, you’ll understand my problem. Please help me in this.

Thanks

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 7, 2020, 8:08am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/11 "2020-04-07T08:08:54Z")

</div>

Hi [developscriptsllc](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/10),

Thanks for the reply. I understand the issue you are facing: You are trying to authenticate with Zoom REST API to get the Zoom token to start a meeting with iOS SDK. I am not sure why you are getting an extra field “aid” but if you would like to start a meeting with zoom token, our demo app has the exact implementation showing how to authentication with Zoom REST API and how to use it to start a meeting: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how\_to\_start\_join\_meeting/start\_with\_rest\_api\_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/start_with_rest_api_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m). I have just tested this implementation with our demo app and it is working. Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![developscriptsllc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developscriptsllc/32/3122_2.png) [@developscriptsllc](https://devforum.zoom.us/u/developscriptsllc)\
**Post date:** [April 7, 2020, 12:37pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/12 "2020-04-07T12:37:33Z")

</div>

Hello @carson.zoom i tried the sample code provided in the Github -\> [Code Snippet from Github](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/start_with_rest_api_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m)

Still i am getting Invalid access token, here i am attaching the code.

- (void)startMeeting\_RestApiWithoutLoginUser:(BOOL)appShare  
{  
MobileRTCMeetingService \*ms = [[MobileRTC sharedRTC] getMeetingService];  
//Sample for Start Param interface  
MobileRTCMeetingStartParam \* param = nil;

If you suggest me a better way to share the APIKey and APISecret, i will share that also for your reference.

And i need one more clarification, Only login user can schedule a Meeting or any user with Zoom Token and Zoom Access Token can schedule a meeting?

Thanks.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 8, 2020, 5:40am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/13 "2020-04-08T05:40:31Z")

</div>

Hi [developscriptsllc](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/12),

Thanks for the reply. Yes, I was testing with the exact same code you are using. So the problem might be the key&secrets. Could you try to deactivate your JWT app on Marketplace and then re-activate again and see if it helps? If the issue persists, please let me know and I will find another way to help you.

> [@developscriptsllc](#):
>
> And i need one more clarification, Only login user can schedule a Meeting or any user with Zoom Token and Zoom Access Token can schedule a meeting?

If you are using PreMeetingService to schedule a meeting, then it is only for the login user. For non-login user, you may schedule a meeting using Zoom API.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![taehunchoi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/taehunchoi/32/8029_2.png) [@taehunchoi](https://devforum.zoom.us/u/taehunchoi)\
**Post date:** [June 17, 2020, 2:31pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/14 "2020-06-17T14:31:31Z")

</div>

> (void)startMeeting\_RestApiWithoutLoginUser:(BOOL)appShare  
> {  
> MobileRTCMeetingService \*ms = [[MobileRTC sharedRTC] getMeetingService];  
> //Sample for Start Param interface  
> MobileRTCMeetingStartParam \* param = nil;
> 
> //Sample: How to Get Token or ZAK via RestAPI  
> NSString \* token = [self requestTokenOrZAKWithType:MobileRTCSampleTokenType\_Token];  
> NSString \* ZAK = [self requestTokenOrZAKWithType:MobileRTCSampleTokenType\_ZAK];
> 
> MobileRTCMeetingStartParam4WithoutLoginUser \* user = [[MobileRTCMeetingStartParam4WithoutLoginUser alloc]init];  
> user.userType = MobileRTCUserType\_APIUser;  
> user.meetingNumber = @“some\_random\_number”;  
> user.userName = @“name”;  
> user.userToken = token;  
> user.userID = @“my\_email”;  
> user.isAppShare = appShare;  
> user.zak = ZAK;  
> param = user;
> 
> MobileRTCMeetError ret = [ms startMeetingWithStartParam:param];  
> NSLog(@“onMeetNow ret:%d”, ret);  
> return;  
> }

i am using same code and having exactly same issue. couldn’t create a meeting for 3weeks. btw joining meeting is fine.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 20, 2020, 2:01am UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/15 "2020-06-20T02:01:27Z")

</div>

Hi @taehunchoi,

Thanks for the reply. Are you starting a pre-scheduled meeting? Was this working before and suddenly not working starting 3 weeks ago?

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:10pm UTC](https://devforum.zoom.us/t/getting-null-value-when-decode-jwt-token/10459/16 "2020-08-21T22:10:52Z")

</div>


