lupidan / apple-signin-unity

Unity plugin to support Sign In With Apple Id
MIT License
598 stars 85 forks source link

NullReferenceException: Object reference not set to an instance of an object. #163

Closed ilhamachmada closed 1 year ago

ilhamachmada commented 1 year ago

Hi, thanks for your plugin. I'd really love that. I have an issue on getting authorization code for my REST API server. Here is the log :

Uploading Crash Report NullReferenceException: Object reference not set to an instance of an object. at Platform.LoginWithApple.GetUserToken(AppleAuth.Interfaces.ICredential receivedCredential) [0x00000] in <00000000000000000000000000000000>:0 at Platform.LoginWithApple.b7_0 (AppleAuth.Interfaces.ICredential credential) [0x00000] in <00000000000000000000000000000000>:0 at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0 at AppleAuth.AppleAuthManager+<>c__DisplayClass9_0.b0 (System.String payload) [0x00000] in <00000000000000000000000000000000>:0 at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0 at AppleAuth.AppleAuthManager+CallbackHandler+<>c__DisplayClass14_0.b__0 () [0x00000] in <00000000000000000000000000000000>:0 at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at AppleAuth.AppleAuthManager+CallbackHandler.ExecutePendingCallbacks () [0x00000] in <00000000000000000000000000000000>:0 at AppleAuth.AppleAuthManager.Update () [0x00000] in <00000000000000000000000000000000>:0 at Platform.LoginWithApple.Update () [0x00000] in <00000000000000000000000000000000>:0

I follow the code on the documentation here : https://github.com/lupidan/apple-signin-unity#perform-sign-in-with-apple

I hope there is some solution to solve this issue, thanks again for your hard work! 👍