createSession method
Implementation
Future<Tuple2> createSession(String identifier, String password) async {
// TODO format check for handle.
Map<String, dynamic> params = {
"identifier": identifier,
"password": password
};
http.Response res = await api.post("com.atproto.server.createSession",
headers: {"Content-Type": "application/json"},
body: json.encode(params));
return Tuple2<int, Map<String, dynamic>>(
res.statusCode, json.decode(res.body));
}