login-flows

Implement reusable Playwright login patterns for username/password, OAuth/SSO, and MFA flows.

11|2|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/nrl-ai/chub --skill login-flows-nrl-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: login-flows
Source: https://github.com/nrl-ai/chub/tree/main/content/playwright-community/skills/login-flows
Command: npx skills add https://github.com/nrl-ai/chub --skill login-flows-nrl-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web automation teams repeatedly implement login flows in tests; this skill centralizes patterns to improve reliability, speed, and maintainability.

Core Features & Use Cases

  • Username/password: Basic login automation for protected pages.
  • OAuth / SSO: Support for federated sign-in flows with external providers.
  • MFA / 2FA: Handling of time-based one-time codes and second factors.
  • Storage state: Persist and reuse authenticated sessions to speed up test runs.

Quick Start

Use this skill to implement reusable Playwright login patterns across your end-to-end tests.

Frequently Asked Questions about login-flows

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

FAQPage Schema
How do I handle MFA and 2FA time-based one-time codes in Playwright e2e-testing?

Handle MFA and 2FA in Playwright e2e-testing by integrating robust login patterns that securely process time-based one-time codes and second factors. This skill centralizes these authentication flows to reduce flaky tests.

What's the best way to reuse authenticated sessions and storage state in Playwright automation?

Reuse authenticated sessions in Playwright automation by persisting and handling storage state. This approach speeds up test runs and maintains test isolation by avoiding repeated username/password logins.

Does this skill support OAuth and SSO federated sign-in flows for web automation?

Yes, it supports OAuth and SSO federated sign-in flows for web automation. The skill identifies and integrates robust Playwright login patterns to reliably validate these external provider authentication scenarios.

Do I need TypeScript and environment-driven credentials to automate login flows with Playwright?

Yes, you need TypeScript support and environment-driven credentials to securely automate login flows with Playwright. This setup ensures validation of authentication scenarios while maintaining test isolation and reliability.

Why does my Playwright login flow keep failing in end-to-end tests?

Playwright login flows often fail in end-to-end tests due to flaky authentication mechanisms. Implementing reusable login patterns with proper storage state handling reduces this flakiness and improves test reliability and speed.