Capture a login once, then reuse it in every test.
authXtract opens a real browser so you can sign in by hand, including MFA, SSO,
and OAuth. It saves that session encrypted on disk, then hands Playwright a
ready-to-use storageState file when your tests ask for one. No more
re-typing credentials, and no more broken login steps in CI.
Node 18+ · Chrome or Edge · macOS, Linux, Windows
Three steps, one tool
You log in. authXtract keeps the session safe and gives it to Playwright when you need it.
Sign in like a person
Log in through a real browser, MFA and SSO included. authXtract captures the session that login produces.
Encrypted on disk
Sessions are stored with AES-256-GCM. Your passphrase runs through scrypt and can live in your OS keychain or a secret manager.
Drop into Playwright
Export a standard storageState JSON and pass it to test.use(). The test starts already logged in.
Captures expire after 24 hours by default, each one runs in a throwaway browser profile that is deleted afterward, and a decrypted file is written only when you run export.
Grab it on GitHub
authXtract is open source under the ISC license. The README walks through install, the full command reference, the security model, and how to wire it into Playwright and CI. Clone it, try it on one of your own logins, and open an issue if something gets in your way.