playwright-mcp-auth

Inject OAuth or Firebase authentication states into Playwright browser sessions.

2|1|Updated Aug 23, 2025
One-click install
npx skills add https://github.com/neozenith/agentic-dotfiles --skill playwright-mcp-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-mcp-auth
Source: https://github.com/neozenith/agentic-dotfiles/tree/main/skills/playwright-mcp-auth
Command: npx skills add https://github.com/neozenith/agentic-dotfiles --skill playwright-mcp-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies testing authenticated web applications with Playwright by automating the process of injecting OAuth or Firebase auth states into Playwright sessions, making it secure for E2E authentication testing.

Core Features & Use Cases

  • Authentication State Injection: Automates the capture of real Chrome browser auth states (OAuth/Firebase) and injects them into Playwright browser sessions.
  • Use Case: Ideal for developers testing Google OAuth-based apps or debugging Firebase authentication issues. It streamlines the setup of E2E workflows with authenticated state captured from real browsers.

Quick Start

Inject authentication state into your Playwright MCP browser session for testing.

Frequently Asked Questions about playwright-mcp-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject Firebase auth state into Playwright sessions for e2e testing?

Playwright e2e testing authenticates by injecting real Chrome browser auth states, such as OAuth or Firebase tokens, directly into automated browser sessions to bypass manual login steps.

Can I automate Google OAuth authentication in Playwright?

Automating Google OAuth in Playwright works by capturing the authentication state from a real Chrome browser session and injecting it into your automated tests for secure testing.

Do I need a real Chrome browser to test authentication with Playwright?

Yes, testing authentication with this approach requires a real Chrome browser because the Skill captures the actual OAuth or Firebase auth state from the real browser to inject into Playwright sessions.

What is the best way to handle authenticated sessions in Playwright e2e tests?

The best way to handle authenticated sessions in Playwright e2e tests is to capture the real auth state from Chrome and inject it into your sessions, avoiding insecure manual logins or hardcoded credentials during testing.

Does this Skill support Firebase Authentication setup for secure testing?

Yes, this Skill supports Firebase Authentication setup by automating the injection of real Firebase auth states into Playwright browser sessions for secure e2e testing.

Why does my Playwright authentication test fail with OAuth?

Playwright authentication tests with OAuth often fail when not properly injecting the real Chrome browser auth state, which this Skill automates to ensure secure and valid e2e testing sessions.