All Login methods in User API with the ResultCallback<TokenData, OAuthError> callback doesn't actually return the TokenData object, and there is no alternate methods to get the TokenData afterwards.
The result from the HTTP response is not passed to the callback:
|
Result<TokenData, OAuthError> result = response.TryParseJson<TokenData, OAuthError>(); |
|
|
|
if (!result.IsError) |
|
{ |
|
this.SetSession(result.Value); |
|
callback.TryOk(); |
|
} |
|
else |
|
{ |
|
callback.TryError(result.Error); |
|
} |
Should it not be:
if (!result.IsError)
{
this.SetSession(result.Value);
}
callback.Try(result);
All Login methods in User API with the
ResultCallback<TokenData, OAuthError>callback doesn't actually return the TokenData object, and there is no alternate methods to get the TokenData afterwards.The result from the HTTP response is not passed to the callback:
accelbyte-unity-sdk/Runtime/Api/LoginSession.cs
Lines 208 to 218 in 3eb4d46
Should it not be: