getSessions method
Implementation
Future<List<AuthSession>> getSessions() async {
final res = await dio.get<List<dynamic>>(endpoints.sessions);
return res.data!
.cast<Map<String, dynamic>>()
.map(AuthSession.fromJson)
.toList();
}