# iOS SDK Auth/Login problem

**URL:** <https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129>\
**Category:** iOS\
**Created:** [May 18, 2020, 12:03pm UTC](https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129 "2020-05-18T12:03:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob.gomez.mu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rob.gomez.mu/32/8359_2.png) [@rob.gomez.mu](https://devforum.zoom.us/u/rob.gomez.mu)\
**Post date:** [May 18, 2020, 12:03pm UTC](https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129/1 "2020-05-18T12:03:18Z")

</div>

I’m trying to integrate Zoom SDK in my app, and I want to do these steps:

1- Initialize SDK  
2a- If user != logged, go to login screen  
2b- else, go to home screen

If I put TRUE in “rememberMe” login parameter, then when I run my app and I did login previously, onMobileRTCAuthReturn and onMobileRTCLoginReturn are called consecutively, but if any user is logged in, onMobileRTCLoginReturn never called.

My problem is how to know if are there any user logged or not, it’s possible to know if login flow is called in background or something like that?

I try to use Auth Service “isLoggedIn” but this isn’t the trick…

Can you help me, please?

Thanks in advance,

Roberto

---

<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 21, 2020, 5:55am UTC](https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129/2 "2020-05-21T05:55:37Z")

</div>

Hi Roberto,

Thanks for the post. It is expected behavior that the `onMobileRTCAuthReturn` and `onMobileRTCLoginReturn` will be triggered even when the rememberMe is set to Yes. If you would like to know whether a user has logged or not, you could wait for the `onMobileRTCLoginReturn` to be called and then proceed to the next action.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![rob.gomez.mu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rob.gomez.mu/32/8359_2.png) [@rob.gomez.mu](https://devforum.zoom.us/u/rob.gomez.mu)\
**Post date:** [May 21, 2020, 2:23pm UTC](https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129/3 "2020-05-21T14:23:15Z")

</div>

Yes, but the problem is that I have to wait for `onMobileRTCLoginReturn` unknowingly if it will be called or not… I think that it isn’t a good solution…

---

<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, 12:26am UTC](https://devforum.zoom.us/t/ios-sdk-auth-login-problem/18129/4 "2020-05-30T00:26:44Z")

</div>

Hi @rob.gomez.mu,

Thanks for the reply. You could set up the delegate while initializing the SDK, so that you will definitely get the login callback.

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/ios-sdk-auth-login-problem/18129/5 "2020-08-21T21:38:06Z")

</div>

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


