authenticate method
Send the credentials so it can be stored on this connection.
Implementation
Future<Map<String, dynamic>> authenticate(
String rid,
Map<String, dynamic> params,
) async {
var id = await send("auth", rid, params);
return await receive(id);
}