# Mobile SDK always fails to authenticate on launch

**URL:** <https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512>\
**Category:** iOS\
**Created:** [April 29, 2020, 11:31pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512 "2020-04-29T23:31:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimedRight\_Webinar\_A](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/timedright_webinar_a/32/202_2.png) [@TimedRight\_Webinar\_A](https://devforum.zoom.us/u/TimedRight_Webinar_A)\
**Post date:** [April 29, 2020, 11:31pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/1 "2020-04-29T23:31:07Z")

</div>

**Description**  
I get MobileRTCAuthError\_KeyOrSecretWrong in my AppDelegate onMobileRTCAuthReturn method when trying to authorize my app. I’ve already double-checked that the key and secret match what is in our marketplace SDK app and that that app is activated. We had been using this successfully in previous versions, I do not know when it broke.

**Which version?**  
v4.6.21666.0428

**To Reproduce(If applicable)**

1. Happens on launch of the app

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

- Device: iPhone 8
- OS: iOS13.3
- Version 1

**Additional context**  
This is the main way we try to authenticate in AppDelegate:

```
	let zoomContext = MobileRTCSDKInitContext()
	zoomContext.domain = "https://www.zoom.us/"
	MobileRTC.shared().initialize(zoomContext)
	if let service = MobileRTC.shared().getAuthService() {
		service.delegate = self
		service.clientKey = kZoomSdkKey
		service.clientSecret = kZoomSdkSecret
		service.sdkAuth()
	}

```

I’ve also tried setting the domain to “[zoom.us/](http://zoom.us/)”, but see the same behaviour.  
I’ve tried setting the jwt token, but then I don’t see the onMobileRTCAuthReturn method called at all.

---

<div class="post-metadata">

**Author:** ![iScribeHealth](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@iScribeHealth](https://devforum.zoom.us/u/iScribeHealth)\
**Post date:** [April 30, 2020, 2:16am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/2 "2020-04-30T02:16:59Z")

</div>

We just started experiencing the exact same issue today. Our app had been authenticating perfectly fine, but now we’re receiving the MobileRTCAuthError\_KeyOrSecretWrong error. Our keys and secrets are definitely correct and our app is activated. We’re also using the [zoom.us](http://zoom.us) domain.

Any feedback/guidance on this would be greatly appreciated. This is a major inconvenience for our users.

---

<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:** [May 2, 2020, 7:43am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/3 "2020-05-02T07:43:10Z")

</div>

Hi [TimedRight\_Webinar\_A](https://devforum.zoom.us/u/TimedRight_Webinar_A),

Thanks for the post. Let me contact you shortly.

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:** [May 2, 2020, 7:43am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/4 "2020-05-02T07:43:30Z")

</div>

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

Thanks for using Zoom SDK. Let me contact you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![devark](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@devark](https://devforum.zoom.us/u/devark)\
**Post date:** [May 26, 2020, 6:26pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/5 "2020-05-26T18:26:32Z")

</div>

We have the same problem too. How can we fix this?

---

<div class="post-metadata">

**Author:** ![devark](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@devark](https://devforum.zoom.us/u/devark)\
**Post date:** [May 26, 2020, 6:56pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/6 "2020-05-26T18:56:21Z")

</div>

Hi @iScribeHealth. Did zoom solved this problem for you?  
Thanks!

---

<div class="post-metadata">

**Author:** ![iScribeHealth](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@iScribeHealth](https://devforum.zoom.us/u/iScribeHealth)\
**Post date:** [May 26, 2020, 7:20pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/7 "2020-05-26T19:20:00Z")

</div>

Yes, they did. You may want to submit a request on their support page to get faster response time: [https://support.zoom.us/hc/en-us/requests/new](https://support.zoom.us/hc/en-us/requests/new)

---

<div class="post-metadata">

**Author:** ![devark](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@devark](https://devforum.zoom.us/u/devark)\
**Post date:** [May 27, 2020, 4:30pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/8 "2020-05-27T16:30:33Z")

</div>

We need to create an sdk app, and not a jwt app as stated in doc.  
😡 🤬

---

<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:** [May 28, 2020, 8:30am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/9 "2020-05-28T08:30:40Z")

</div>

Hi @devark,

Thanks for the reply. May I inquire what is the issue you are facing right now and how can I help?

Thanks!

---

<div class="post-metadata">

**Author:** ![devark](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@devark](https://devforum.zoom.us/u/devark)\
**Post date:** [May 29, 2020, 11:59am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/10 "2020-05-29T11:59:44Z")

</div>

Hi @carson. We were using the credentials from a jwt app, as stated in doc. But for the sdk to authenticate you must use the credentials from a sdk app.  
I think it’s better to fix the doc.  
Bye

---

<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:** [May 30, 2020, 1:10am UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/11 "2020-05-30T01:10:13Z")

</div>

Hi @devark,

Thanks for the reply. Could you provide the link of the doc that needs to fix? I will forward it to the doc team to fix it.

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, 9:38pm UTC](https://devforum.zoom.us/t/mobile-sdk-always-fails-to-authenticate-on-launch/15512/12 "2020-08-21T21:38:13Z")

</div>

Closed on August 21, 2020, 9:38pm UTC


