whoami method
Implementation
Future<Map<String, dynamic>?>? whoami() async {
try {
final res = await _dio.get("https://$_domain/api/users/whoami",
options: Options(headers: {
'User-Agent': applicationName,
'Authorization': "Bearer $accessToken"
}));
return res.data;
} on DioException {
//print(e.response!.data);
throw BadResponseException();
}
}