Helper to manage browser authentication with Playwright including IndexedDB data. This makes it work with Firebase Auth.
import { createAuth, loadAuth } from "playwright-auth";
const { authData } = await createAuth(page);
await loadAuth(page, authData);
Install with
npm install -g playwright-auth
Create a new storage state file:
playwright-auth create
Load a storage state file:
playwright-auth load <file>
- Clone this repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Link the CLI globally (optional):
npm link