logout method
Clears all connection cache, credentials, and cookies.
Implementation
Future<void> logout() async {
_ensureActive();
await cache.clearAll();
await auth.clear();
if (config.cookiesEnabled) await cookies.clearAll();
await cache.startSession(
sessionId: 'anonymous',
clearPreviousOnChange: false,
);
}