accessData property
Return the unique access data (userID & sessionKey) generated when he logged in
Implementation
Future<Map<String, String>?> get accessData async {
if (!await isLogged) {
return null;
}
SharedPreferences prefs = await SharedPreferences.getInstance();
String? sessionKey = prefs.getString("instagram_auth.sessionKey");
String? userId = prefs.getString("instagram_auth.userId");
return {
'sessionKey': sessionKey ?? "",
'userId': userId ?? "",
};
}