authenticateFacebookInstantGame method
Implementation
@override
Future<model.Session> authenticateFacebookInstantGame({
required String signedPlayerInfo,
bool create = true,
String? username,
Map<String, String>? vars,
}) async {
final res = await _api.v2AccountAuthenticateFacebookinstantgamePost(
body: ApiAccountFacebookInstantGame(
signedPlayerInfo: signedPlayerInfo,
vars: vars,
),
create: create,
username: username,
);
if (res.body == null) {
throw Exception('Authentication failed.');
}
final data = res.body!;
return model.Session.fromApi(data);
}