Unity SDK Error with Deserializer in GetUserAsync function


I am attempting login via the WebGL Unity SDK v 1.1.0. I get an error when utilizing the get GetUserAsync function.


Be able to login to user with a session token.


Error: Error creating ‘Moralis.WebGL.Platform.Objects.MoralisUserJsonConvertor’

Execute this line in Unity


Execution leads to correctly pulling user from server using session token via GetUserAsync. User is fetched in this json format:

            "data":"Authenticate \n\nId: 1234"

When execution reaches this line, the above json attempts to be deserialized.

Then I get the error:

  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass22_0.<GetCreator>b__0 (System.Object[] parameters) [0x00000] in <00000000000000000000000000000000>:0 
   --- End of inner exception stack trace ---
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass22_0.<GetCreator>b__0 (System.Object[] parameters) [0x00000] in <00000000000000000000000000000000>:0 ```

Hey, try the latest version of the sdk

I have tried to use the new version but that came with its own issues. Is there any clear documentation on how to upgrade for webgl builds? or that do auth without the authentication kit?

If not i’d like to continue with our current version. I was told it could be done here: Ethereum Unity3D Boilerplate Questions

hoping to resolve this for the current version as we have a game thats already in production with this version.


there is enough info in the docs

you can migrate the code, look at the change log and the new syntax of the code e.t.c

you can use any sdk version, but the docs only reflect the latest version