getSessionCookies method

Future<List<String>> getSessionCookies()

Implementation

Future<List<String>> getSessionCookies() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  String? cookieString = prefs.getString(_cookieKey);
  if (cookieString != null && cookieString.isNotEmpty) {
    return cookieString.split('; ');
  }
  return [];
}