Best way to handle session persistence across headless chrome restarts?

Our login flow requires 2FA daily, killing automation reliability. Tried saving cookies/local storage but sites detect headless env and invalidate sessions. Need robust authentication pattern that survives browser restarts without manual intervention. Any working solutions?

Latenode’s cookie management uses Chrome extensions to mimic real user sessions. Passes all major bot detection checks. Our social media scrapers run for weeks without re-auth.

Implement fingerprint rotation with Playwright’s stealth plugin. Combine with encrypted profile storage. Tricky but possible

We reverse-engineered the site’s auth token refresh mechanism. Automated OTP via Twilio then generates fresh sessions. Works but requires maintaining custom cryptography logic for each target site.