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