# iOS swift best practice after JWT deprecated

**URL:** <https://devforum.zoom.us/t/ios-swift-best-practice-after-jwt-deprecated/83280>\
**Category:** iOS\
**Tags:** ios\
**Created:** [February 16, 2023, 5:32pm UTC](https://devforum.zoom.us/t/ios-swift-best-practice-after-jwt-deprecated/83280 "2023-02-16T17:32:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andytsangchun](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/andytsangchun/32/44414_2.png) [@andytsangchun](https://devforum.zoom.us/u/andytsangchun)\
**Post date:** [February 16, 2023, 5:32pm UTC](https://devforum.zoom.us/t/ios-swift-best-practice-after-jwt-deprecated/83280/1 "2023-02-16T17:32:33Z")

</div>

As one of my older app is using MobileRTC on swift with xib/story  
I was able to login, join meeting and create meeting via MobileRTC with the below code in AppDelegate

```auto
func setupZoom(){
        let zoomSDKKey = "..."
        let zoomSDKSecret = "..."
        let context = MobileRTCSDKInitContext()
        context.domain = "zoom.us"
        context.enableLog = true
        let sdkInitializedSuccessfully = MobileRTC.shared().initialize(context)
        if sdkInitializedSuccessfully == true, let authorizationService = MobileRTC.shared().getAuthService() {
            authorizationService.clientKey = zoomSDKKey
            authorizationService.clientSecret = zoomSDKSecret
            authorizationService.delegate = self
            authorizationService.sdkAuth()
        }
    }

```

However, after JWT deprecated and regarding Swift is having less document support, im not quite understand the best practice to update my app.

Does someone have idea what is the latest best practice to integrate zoom to our own application?

Should be using meeting SDK or oauth or ??? Would be nice if there’re some document or example that I can follow. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 1, 2023, 12:49am UTC](https://devforum.zoom.us/t/ios-swift-best-practice-after-jwt-deprecated/83280/2 "2023-03-01T00:49:56Z")

</div>

@andytsangchun ,

Thank you for posting in the Zoom Developer Forum – I am happy to help. For IOS, you must [generate an SDK JWT](https://marketplace.zoom.us/docs/sdk/native-sdks/auth) using your Marketplace Meeting SDK key and secret. Here is our support documentation which includes instructions for generating SDK JWT.

# Authorization

[https://marketplace.zoom.us/docs/sdk/native-sdks/auth/](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/)

# Create a Meeting SDK App

[https://marketplace.zoom.us/docs/guides/build/sdk-app/](https://marketplace.zoom.us/docs/guides/build/sdk-app/)

To authenticate users outside of your account, you should use PKCE OAuth flow to obtain their tokens. Here is our support guide on that:

# PKCE OAuth and the Meeting SDK for iOS

[https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/build-an-app/pkce/](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/build-an-app/pkce/)

Please let me know if you have any question about this.

---

<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:** [March 31, 2023, 10:50am UTC](https://devforum.zoom.us/t/ios-swift-best-practice-after-jwt-deprecated/83280/3 "2023-03-31T10:50:29Z")

</div>

Closed on March 31, 2023, 10:50am UTC

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