authenticateSteam method
Implementation
@override
Future<model.Session> authenticateSteam({
required String token,
bool create = true,
String? username,
Map<String, String>? vars,
}) async {
final request = AuthenticateSteamRequest()
..create_2 = BoolValue(value: create)
..account = (AccountSteam()
..token = token
..vars.addAll(vars ?? {}));
if (username != null) {
request.username = username;
}
final res = await _client.authenticateSteam(request);
return model.Session(
created: res.created,
token: res.token,
refreshToken: res.refreshToken,
);
}