Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (playwright-auth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-auth
Create a new storage state file:
playwright-auth create
Load 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