JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q48390F
  • License MIT

Helper to manage browser authentication with Playwright including IndexedDB data

Package Exports

  • playwright-auth
  • playwright-auth/dist/index.js

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

  1. Clone this repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Link the CLI globally (optional):
npm link