# Facing issue in SDK authorization getting error MobileRTCAuthError.keyOrSecretWrong

**URL:** <https://devforum.zoom.us/t/facing-issue-in-sdk-authorization-getting-error-mobilertcautherror-keyorsecretwrong/72146>\
**Category:** iOS\
**Created:** [July 13, 2022, 12:41pm UTC](https://devforum.zoom.us/t/facing-issue-in-sdk-authorization-getting-error-mobilertcautherror-keyorsecretwrong/72146 "2022-07-13T12:41:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpandey](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dpandey](https://devforum.zoom.us/u/dpandey)\
**Post date:** [July 13, 2022, 12:41pm UTC](https://devforum.zoom.us/t/facing-issue-in-sdk-authorization-getting-error-mobilertcautherror-keyorsecretwrong/72146/1 "2022-07-13T12:41:46Z")

</div>

**Description**  
We are using a key/secret for Authentication.  
Getting MobileRTCAuthError.keyOrSecretWrong on meeting SDK authorization in both IOS and Android.  
We tried all the solutions like integrating the old SDK and regenerating the secret key. In sample project with sdk also used same key but getting same error. We double check KEY and SECRET .

**Which iOS Meeting SDK version?**  
5.11.2 (3958)

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
let sdkInitialized = MobileRTC.shared().initialize(initContext)  
and getting true.  
During sdk Authentication using

let kSDKAppKey = “Ul\***zu"  
let kSDKAppSecret = "Fl**9n”  
let initContext = MobileRTCSDKInitContext()  
initContext.domain = “[https://zoom.us](https://zoom.us)”  
initContext.enableLog = true  
if MobileRTC.shared().initialize(initContext) {  
if let authService = MobileRTC.shared().getAuthService() {  
aauthService?.clientKey = kSDKAppKey  
authService?.clientSecret = kSDKAppSecret  
authService.delegate = authDelegate  
authService.sdkAuth()  
}  
}

We are getting error code MobileRTCAuthError(rawValue: 2)  
That is SDK Key/Secret is not valid.

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**  
All device  
ios 12 or above

**Additional context**  
Add any other context about the problem here.

---

<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:** [August 12, 2022, 10:42pm UTC](https://devforum.zoom.us/t/facing-issue-in-sdk-authorization-getting-error-mobilertcautherror-keyorsecretwrong/72146/2 "2022-08-12T22:42:47Z")

</div>

Closed on August 12, 2022, 10:42pm UTC

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