logout method

Future<void> logout(
  1. BuildContext context
)

Implementation

Future<void> logout(BuildContext context) async {
  try {
    await _sessionManager.clearSession();
    await CookieManager.instance().deleteAllCookies();

    debugPrint("logging out from webview");
  } catch (e) {
    debugPrint('Error during logout: $e');
  }
}