Closed RafaelBarbosatec closed 10 months ago
I'm getting a similar exception being thrown trying to call authenticateEmail
.
When I've looked into it, it's expecting to find "refreshtoken" in the json but when I look at the http response it's actually "refresh_token".
Looking at the C# implementation from nakama it uses refresh_token - https://github.com/heroiclabs/nakama-dotnet/blob/master/Nakama/ApiClient.gen.cs#L2313
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Hey @RafaelBarbosatec, thank you for your contribution. I fixed the issue about the wrong mapping of refreshToken field in the latest commit in develop branch. The problem actually was the different casing of the real API response and the documented values in the swagger file.
I am going to release a new version in the next days with the fix.
I don’t know se set this default value is the best way to do this. But the problem is that running this package in flutter web the field refreshToken is null. The problem is at line 49 of
Session.dart
: