Skip to content

CLI for easily creating and reading Playwright storage state files.

Notifications You must be signed in to change notification settings

karugamo/playwright-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI for easily creating and reading Playwright storage state files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published