logout method
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');
}
}