playwright-auth
v1.6.0
Published
Helper to manage browser authentication with Playwright including IndexedDB data
Downloads
98
Maintainers
Readme
playwright-auth 🔐✨
Helper to manage browser authentication with Playwright including IndexedDB data. This makes it work with Firebase Auth.
Library Usage
import { createAuth, loadAuth } from "playwright-auth";
const { authData } = await createAuth(page);
await loadAuth(page, authData);CLI Usage
Install with
npm install -g playwright-authCreate a new storage state file:
playwright-auth createLoad a storage state file:
playwright-auth load <file>Development
- Clone this repository
- Install dependencies:
npm install- Build the project:
npm run build- Link the CLI globally (optional):
npm link