Hi there, thanks for the amazing work!
I am having an issue when I try to authenticate with the QR code in Unity:
When I use Trust Wallet or Iam Token to capture the QR, it sends the request correctly, then receive back the confirmation message inside the wallet.
However when accepting the request, the loggin fails, and this shows in Unity’s consol, related to UserServiceExtensions.cs :
NullReferenceException: Object reference not set to an instance of an object
Moralis.Platform.Services.ClientServices.UserServiceExtensions+<>c__DisplayClass18_01[TUser].<LogInWithAsync>b__0 (System.Threading.Tasks.Task
1[TResult] task) (at Assets/MoralisWeb3ApiSdk/Moralis/MoralisDotNet/Platform/Services/ClientServices/UserServiceExtensions.cs:191)
Moralis.Platform.Utilities.InternalExtensions+<>c__DisplayClass5_02[TIn,TResult].<OnSuccess>b__0 (System.Threading.Tasks.Task t) (at Assets/MoralisWeb3ApiSdk/Moralis/MoralisDotNet/Platform/Utilities/InternalExtensions.cs:45) Moralis.Platform.Utilities.InternalExtensions+<>c__DisplayClass7_0
1[TResult].b__0 (System.Threading.Tasks.Task t) (at Assets/MoralisWeb3ApiSdk/Moralis/MoralisDotNet/Platform/Utilities/InternalExtensions.cs:72)
System.Threading.Tasks.ContinuationResultTaskFromTask1[TResult].InnerInvoke () (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Threading.Tasks.Task.Execute () (at <695d1cc93cca45069c528c15c9fdd749>:0) --- End of stack trace from previous location where exception was thrown --- System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0) Moralis.Platform.Utilities.InternalExtensions+<>c__DisplayClass7_0
1[TResult].b__0 (System.Threading.Tasks.Task t) (at Assets/MoralisWeb3ApiSdk/Moralis/MoralisDotNet/Platform/Utilities/InternalExtensions.cs:59)
System.Threading.Tasks.ContinuationResultTaskFromTask1[TResult].InnerInvoke () (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Threading.Tasks.Task.Execute () (at <695d1cc93cca45069c528c15c9fdd749>:0) --- End of stack trace from previous location where exception was thrown --- System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () (at <695d1cc93cca45069c528c15c9fdd749>:0)
MainMenuScript+d__11.MoveNext () (at Assets/MoralisWeb3ApiSdk/Example/Scripts/MainMenuScript.cs:199)
— End of stack trace from previous location where exception was thrown —
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext:ExecuteTasks() (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)
What am I missing ?
thanks !