# Getting AUTHRET\_OVERTIME when calling SDKAuth

**URL:** <https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095>\
**Category:** Meeting SDK\
**Created:** [April 1, 2021, 5:42pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095 "2021-04-01T17:42:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pier/32/25389_2.png) [@Pier](https://devforum.zoom.us/u/Pier)\
**Post date:** [April 1, 2021, 5:42pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/1 "2021-04-01T17:42:18Z")

</div>

**Description**  
Evertime I call SDKAuth(authContext) the onAuthenticationReturn callback result is always AUTHRET\_OVERTIME

**Which Desktop Client SDK version?**  
v5.4.54802.0124

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

**Device (please complete the following information):**  
Windoes 10 (os build 19041.867)

**Additional context**  
I am able to get the demo project to authenticate with the same jwt / secret- app key token.  
I tried to run it while the firewall was off to make sure it was not getting blocked.

Here is the code I am using to call the SKDAuth

void AuthSDK()  
{  
ZOOM\_SDK\_NAMESPACE::AuthParam authParam;  
authParam.appKey = L" app key here";  
authParam.appSecret = L" app secret here";

```
 _auth_service->SDKAuth(authParam);

```

}

---

<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:** [April 2, 2021, 8:54pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/2 "2021-04-02T20:54:39Z")

</div>

Hey @Pier,

Thanks for using the dev forum!

Usually this error only happens when there is network connection issues. Where in your application are you calling this?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pier/32/25389_2.png) [@Pier](https://devforum.zoom.us/u/Pier)\
**Post date:** [April 5, 2021, 4:26pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/3 "2021-04-05T16:26:04Z")

</div>

I am calling it from the message loop provided by a new visual studio c++ desktop application

```
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){
    switch (message){
       case WM_CREATE :{        
           HWND hButton2 = CreateWindow(TEXT("BUTTON"), TEXT("auth"), WS_VISIBLE | WS_CHILD, 350, 100, 200, 50, hWnd, (HMENU)2, NULL, NULL);
       }
       break;    
    case WM_COMMAND:{   
        int wmId = LOWORD(wParam);
        // Parse the menu selections:
        switch (wmId){
            case 2:
                AuthSDK();
                break;
            default:
                return DefWindowProc(hWnd, message, wParam, lParam);
       }
    }
    break;
default:
    return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;

```

}

---

<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:** [April 5, 2021, 7:55pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/4 "2021-04-05T19:55:08Z")

</div>

Hey @Pier,

Have you initialized the SDK before AuthSDK is called?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pier/32/25389_2.png) [@Pier](https://devforum.zoom.us/u/Pier)\
**Post date:** [April 5, 2021, 8:52pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/5 "2021-04-05T20:52:32Z")

</div>

@Michael_Condon I initialize the SKD the same I call the AUTH code with a UI button, I removed it from the snippet above to make it easier to read, but this is how I initialize the SDK

```
ZOOM_SDK_NAMESPACE::InitParam initParam;
initParam.strWebDomain = L"";
initParam.strSupportUrl = L"https://zoom.us";
initParam.emLanguageID = ZOOM_SDK_NAMESPACE::LANGUAGE_English;
initParam.hResInstance = GetModuleHandle(NULL);
initParam.enableLogByDefault = true;
initParam.enableGenerateDump = true;
bool customiezed_ui_mode = false;  

ZOOM_SDK_NAMESPACE::InitSDK(initParam);

ZOOM_SDK_NAMESPACE::SDKError test = ZOOM_SDK_NAMESPACE::CreateAuthService(&_auth_service);
    
if (_auth_service != NULL)
{
    _auth_service->SetEvent(&EventHandler);
    MessageBox(NULL, L"auth service created", L"awesome", MB_OK);
}
else 
{
    wchar_t istr[32];
    _itow_s(test, istr, 10);
    MessageBox(NULL, istr, L"awesome", MB_OK);
}
```

---

<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:** [April 6, 2021, 11:52pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/6 "2021-04-06T23:52:57Z")

</div>

Hey @Pier,

Hmm that is strange, can you email your SDK logs to [DeveloperSupport@zoom.us](mailto:DeveloperSupport@zoom.us) and mention my name so that we can take a look?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pier/32/25389_2.png) [@Pier](https://devforum.zoom.us/u/Pier)\
**Post date:** [April 12, 2021, 2:18pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/7 "2021-04-12T14:18:07Z")

</div>

@Michael_Condon did you receive any updates about the log files?

---

<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:** [April 12, 2021, 7:55pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/8 "2021-04-12T19:55:06Z")

</div>

Hey @Pier,

Yes, thank you for your patience on this one. I should’ve caught this earlier. Your web domain is blank. It should be:  
`initParam.strWebDomain = L"https://zoom.us";`

Can you try that and let me know what happens?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pier/32/25389_2.png) [@Pier](https://devforum.zoom.us/u/Pier)\
**Post date:** [April 12, 2021, 8:52pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/9 "2021-04-12T20:52:39Z")

</div>

This worked thank you

---

<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:** [April 12, 2021, 9:18pm UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/10 "2021-04-12T21:18:26Z")

</div>

Hey @Pier,

Awesome! Happy to hear 🙂

Please let us know if you run into anything else.

Thanks!  
Michael

---

<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:** [May 13, 2021, 7:19am UTC](https://devforum.zoom.us/t/getting-authret-overtime-when-calling-sdkauth/47095/11 "2021-05-13T07:19:23Z")

</div>

Closed on May 13, 2021, 7:19am UTC

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