# onAuthenticationReturn Callback Not Triggered in C# Console Application

**URL:** <https://devforum.zoom.us/t/onauthenticationreturn-callback-not-triggered-in-c-console-application/95942>\
**Category:** Windows\
**Created:** [September 28, 2023, 8:48am UTC](https://devforum.zoom.us/t/onauthenticationreturn-callback-not-triggered-in-c-console-application/95942 "2023-09-28T08:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ariya/32/52506_2.png) [@ariya](https://devforum.zoom.us/u/ariya)\
**Post date:** [September 28, 2023, 8:48am UTC](https://devforum.zoom.us/t/onauthenticationreturn-callback-not-triggered-in-c-console-application/95942/1 "2023-09-28T08:48:32Z")

</div>

**Description**  
I’m facing an issue where the `onAuthenticationReturn` callback is not being triggered after executing `SDKAuth`.  
Interestingly, the `SDKAuth` function returns `SDKERR_SUCCESS`, but the subsequent call to `GetAuthResult()` returns `AUTHRET_NONE`.  
My application is a console application using C#.

```csharp
var result = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param);
Debug.WriteLine("SDKAuth result: " + result); // Output: SDKAuth result: SDKERR_SUCCESS

var status = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().GetAuthResult();
Debug.WriteLine(status); // Output: AUTHRET_NONE

```

**Windows Meeting SDK version**  
zoom-c-sharp-wrapper-5.16.0.22251

**Steps to reproduce the behavior**

1. Initialize the Zoom SDK
2. Execute `SDKAuth` with JWT token
3. Set up the `onAuthenticationReturn` callback
4. Run the application and wait
5. The `onAuthenticationReturn` callback is not triggered

**Troubleshooting Routes**  
I’ve tried debugging the application, checking for error messages, and reviewing the SDK documentation.  
I also tried implementing a message loop, but it didn’t solve the issue.

**Device**  
Device: [DIY]  
OS: [Windows 11]

**Additional context**  
I suspect that the issue may be related to the console application not having a message loop to handle the callbacks, but adding one didn’t resolve the issue.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 3, 2023, 5:15am UTC](https://devforum.zoom.us/t/onauthenticationreturn-callback-not-triggered-in-c-console-application/95942/2 "2023-10-03T05:15:47Z")

</div>

@ariya ,

I’ve tried this out, the callback is not compatible with c# console application  
This works on a WPF (.net) and Windows Form app.

---

<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:** [November 2, 2023, 3:16pm UTC](https://devforum.zoom.us/t/onauthenticationreturn-callback-not-triggered-in-c-console-application/95942/3 "2023-11-02T15:16:38Z")

</div>

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