Hi,
I am attempting login via the WebGL Unity SDK v 1.1.0. I get an error when utilizing the get GetUserAsync function.
Expected:
Be able to login to user with a session token.
Result
Error: Error creating ‘Moralis.WebGL.Platform.Objects.MoralisUserJsonConvertor’
Test
Execute this line in Unity
MoralisInterface.GetClient().UserFromSession(SessionToken)
Execution leads to correctly pulling user from server using session token via GetUserAsync. User is fetched in this json format:
{
"objectId":"1234",
"username":"1234",
"authData":{
"moralisEth":{
"id":"0x011234",
"signature":"0x1234",
"data":"Authenticate \n\nId: 1234"
}
},
"createdAt":"2022-01-18T22:17:18.515Z",
"updatedAt":"2022-01-10T18:20:20.721Z",
"accounts":[
"0x011234"
],
"ethAddress":"0x011234",
"ACL":{
"q5342345234":{
"read":true,
"write":true
},
"role:coreservices":{
"read":true,
"write":true
}
},
"__type":"Object",
"className":"_User",
"sessionToken":"r:f4234t25t23451345242452"
}
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 ```