# Fail to log in zoom account (always return nil)

**URL:** <https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014>\
**Category:** iOS\
**Created:** [April 7, 2020, 10:18pm UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014 "2020-04-07T22:18:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy.ly](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@andy.ly](https://devforum.zoom.us/u/andy.ly)\
**Post date:** [April 7, 2020, 10:18pm UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014/1 "2020-04-07T22:18:11Z")

</div>

**Description**  
Hi,  
I am currently trying to log in to Zoom through my app. This is my code thus far:

```
iMobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];
if (!authService) {
    return;
}

[authService loginWithEmail:@"email@gmail.com" password:@"123456" remeberMe:NO];

MobileRTCAccountInfo *account = [authService getAccountInfo];
if (!account) {
    return;
}

```

I try to login to Zoom though my app by calling: [MobileRTCAuthService loginWithEmail:password:remeberMe:]. It seems like it is not successfully logging into my zoom account because [MobileRTCAuthService getAccountInfo] always returns nil. (The email and password parameters are correct, just changed it for the purpose of posting here). Am I doing something wrong or am I missing a step? Any help is appreciated, thank you!

**Which version?**  
v4.6.15805.0403

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

- Device: iPhone 7
- OS: iOS 13.3.1

---

<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:** [April 8, 2020, 7:42am UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014/2 "2020-04-08T07:42:32Z")

</div>

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

Thanks for using Zoom SDK. Are you getting any error messages? Please note that the login request is an async call, you will need to implement the callback `onMobileRTCLoginReturn` to get the result of the login request. You may refer to the implementation in our demo app:[https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how\_to\_init\_auth\_sdk/how\_to\_auth\_sdk/SDKAuthPresenter%2BAuthDelegate.m#L25;](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_init_auth_sdk/how_to_auth_sdk/SDKAuthPresenter%2BAuthDelegate.m#L25;) Once the login is success, then you will be able to retrieve the user info.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 9, 2020, 5:56am UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014/3 "2020-07-09T05:56:50Z")

</div>

Hi Carson,

I am also facing this issue randomly, sometimes I am able to get account info, after I log out and again login with the same credentials I am getting nil in account info in “onMobileRTCLoginReturn” delegate.

---

<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:** [July 11, 2020, 12:37am UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014/4 "2020-07-11T00:37:35Z")

</div>

Hi @pandiyaraj,

Thanks for the reply. Is this reproducible with the demo app? Could you provide the SDK log when this issue happens for us to further investigate?

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, 10:39pm UTC](https://devforum.zoom.us/t/fail-to-log-in-zoom-account-always-return-nil/12014/5 "2020-08-21T22:39:39Z")

</div>

Closed on August 21, 2020, 10:39pm UTC


