# iOS SDK JWT key not working

**URL:** <https://devforum.zoom.us/t/ios-sdk-jwt-key-not-working/7996>\
**Category:** iOS\
**Created:** [February 11, 2020, 12:16pm UTC](https://devforum.zoom.us/t/ios-sdk-jwt-key-not-working/7996 "2020-02-11T12:16:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![osemenyshyn](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@osemenyshyn](https://devforum.zoom.us/u/osemenyshyn)\
**Post date:** [February 26, 2020, 3:43pm UTC](https://devforum.zoom.us/t/ios-sdk-jwt-key-not-working/7996/6 "2020-02-26T15:43:48Z")

</div>

> [@carson.zoom](#):
>
> 1. Comment out the jwtToken, and only use the clientKey & clientSecret, and make sure the key&secret are working. Please don’t forget to extend MobileRTCAuthDelegate in your class
> 
> ```auto
> class AppDelegate: UIResponder, UIApplicationDelegate, MobileRTCAuthDelegate {
> ...
> }
> 
> ```

This part works fine. JWT doesn’t (((  
I’m sure I’m not correct generate JWT:

> > > I use clientKey&clientSecret to generate JWT in JWT io

1. Set clientKey in “appKey”
2. Set Unix current timestamp (1582729214) to “iat”
3. Set Unix current timestamp + expiration timestamp (1582739214) to “exp”
4. Set expiration time (60) to “tokenExp”
5. Set clientSecret in “your-256-bit-secret”

> > > After I take generated jwt and put in _authService?.jwtToken_ parameter.

Is everything fine? Or I miss something?

---

_[View the full topic](https://devforum.zoom.us/t/ios-sdk-jwt-key-not-working/7996)._
