# Authorization Callback Never Returns. C#

**URL:** <https://devforum.zoom.us/t/authorization-callback-never-returns-c/71024>\
**Category:** Windows\
**Created:** [June 23, 2022, 5:48pm UTC](https://devforum.zoom.us/t/authorization-callback-never-returns-c/71024 "2022-06-23T17:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wolf\_Isaac](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@Wolf\_Isaac](https://devforum.zoom.us/u/Wolf_Isaac)\
**Post date:** [June 23, 2022, 5:48pm UTC](https://devforum.zoom.us/t/authorization-callback-never-returns-c/71024/1 "2022-06-23T17:48:48Z")

</div>

**Description**  
I am creating a library, compiled as a DLL, that I can use inside of Unity. I am testing the library via a c# console application. The problem is that the authorization return callback never gets called (I confirmed this via a logging function). My program awaits this callback, so it essentially hangs after calling SDKAuth(). Interestingly, the authorization callback works in Unity, but it is not ideal for me to debug my library inside of Unity.

**Which Windows Meeting SDK version?**  
v5.10.3.4884

**Code snippet**

```auto
internal static async Task Main(string[] args)
        {
            Console.WriteLine(ZoomLibrary.Initialize());
            await AuthenticateZoom();
        }

        internal static Task<bool> AuthenticateZoom()
        {
            var tcs = new TaskCompletionSource<bool>();
            var authServiceEvents = new ZoomLibrary.AuthServiceEvents()
            {
                onAuthenticationReturn = returnCallback = (ZoomLibrary.AuthResult result) =>
                {
                    if (result == ZoomLibrary.AuthResult.AUTHRET_SUCCESS)
                    {
                        Console.WriteLine("Zoom Authenticated!");
                    }
                    else
                    {
                        Console.WriteLine(result);
                    }
                    tcs.SetResult(true);
                },
            };
            ZoomLibrary.AuthorizeSDK(authServiceEvents);
            return tcs.Task;
        }

```

**Device:**

- OS: Windows 10

**Additional context**  
I found this related post, but I’m not entirely sure if it’s related to my problem: [Authorization Callback Never Returns in C# wrapper](https://devforum.zoom.us/t/authorization-callback-never-returns-in-c-wrapper/49324)  
Apologies @tyler but since that thread is closed, I was hoping to ask if you fixed your issue or not. Thanks!  
Also, I have confirmed that SDKAuth returns SDKERR\_SUCCESS. My assumption is that means my jwt is valid, and that authorization is in progress.

---

<div class="post-metadata">

**Author:** ![Wolf\_Isaac](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@Wolf\_Isaac](https://devforum.zoom.us/u/Wolf_Isaac)\
**Post date:** [June 24, 2022, 3:50pm UTC](https://devforum.zoom.us/t/authorization-callback-never-returns-c/71024/2 "2022-06-24T15:50:16Z")

</div>

I tried compiling with x86 and set my configuration to “Release” but it did not make a difference.

---

<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:** [July 25, 2022, 1:50am UTC](https://devforum.zoom.us/t/authorization-callback-never-returns-c/71024/3 "2022-07-25T01:50:55Z")

</div>

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