# Sdk authentication failed error, code 1

**URL:** <https://devforum.zoom.us/t/sdk-authentication-failed-error-code-1/36456>\
**Category:** iOS\
**Created:** [November 19, 2020, 3:04pm UTC](https://devforum.zoom.us/t/sdk-authentication-failed-error-code-1/36456 "2020-11-19T15:04:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Golanlan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/golanlan/32/19017_2.png) [@Golanlan](https://devforum.zoom.us/u/Golanlan)\
**Post date:** [November 19, 2020, 3:04pm UTC](https://devforum.zoom.us/t/sdk-authentication-failed-error-code-1/36456/1 "2020-11-19T15:04:58Z")

</div>

**Description**  
After successfully running the demo SDK, I’m receiving error number 1 on the app launch, can’t log into an existing meeting hosted by another macOS app.

I’ve followed this: [SDK Authentication Error Code 1](https://devforum.zoom.us/t/sdk-authentication-error-code-1/34956/2)  
with no success. (I don’t understand point 1 about the .token…?)

**Which version?**  
v5.2.42037.1112

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

- Device: iPhone SE
- OS: iOS 14
- Version 14.2

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [November 19, 2020, 10:56pm UTC](https://devforum.zoom.us/t/sdk-authentication-failed-error-code-1/36456/2 "2020-11-19T22:56:34Z")

</div>

Hey @Golanlan

Thank you for using the dev forum!

To initialize the sdk you must provide either a JWT token or your SDK Key and Secret. In the demo app navigate to SDKAuthPresenter.m and on line 28, there is a line of code:  
authService.jwtToken = jwtToken;  
which is where the jwtToken is passed into the SDK.  
If you would like to use your SDK key and secret instead of a JWT, you can do so by replacing that line of code with  
authService.clientKey = @“your sdk key”;  
authService.clientSecret = @“your client secret”;

This should stop the error you are receiving. This path is fine for testing, however we highly encourage developers to use JWT instead.

Thanks!  
Michael
