# Dose Login have to be called right after SDKAuth success?

**URL:** <https://devforum.zoom.us/t/dose-login-have-to-be-called-right-after-sdkauth-success/906>\
**Category:** Windows\
**Created:** [January 23, 2018, 1:24am UTC](https://devforum.zoom.us/t/dose-login-have-to-be-called-right-after-sdkauth-success/906 "2018-01-23T01:24:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xu\_wu](https://avatars.discourse-cdn.com/v4/letter/x/dfb087/32.png) [@xu\_wu](https://devforum.zoom.us/u/xu_wu)\
**Post date:** [January 23, 2018, 1:24am UTC](https://devforum.zoom.us/t/dose-login-have-to-be-called-right-after-sdkauth-success/906/1 "2018-01-23T01:24:35Z")

</div>

When I called login right after SDKAuth success. It worked well. But when I called login later on, for example, before I join a meeting. It returned WRONG\_USAGE. So what’s the right process to login?&nbsp;

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [January 23, 2018, 1:45am UTC](https://devforum.zoom.us/t/dose-login-have-to-be-called-right-after-sdkauth-success/906/2 "2018-01-23T01:45:03Z")

</div>

Hi Xu,

you need to wait for the callback:

IAuthServiceEvent virtual void onAuthenticationReturn(AuthResult ret) = 0;

you can also check your login status using the following callback:

virtual void onLoginRet(LOGINSTATUS ret, IAccountInfo\* pAccountInfo) = 0;

Best

Wei

&nbsp;

---

<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, 5:36pm UTC](https://devforum.zoom.us/t/dose-login-have-to-be-called-right-after-sdkauth-success/906/3 "2020-08-21T17:36:10Z")

</div>

Closed on August 21, 2020, 5:36pm UTC


