onAuthenticationReturn Callback Not Triggered in C# Console Application

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#.

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.

1 Like

@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.

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