playwright-oauth-code-capture
CommunityCapture OAuth codes in Playwright redirects.
Authorstrataga
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Capture OAuth authorization codes during Playwright automation when redirects to localhost fail and the code would otherwise be lost.
Core Features & Use Cases
- Intercept localhost redirects with Playwright's page.route to capture the full redirect URL before the failure.
- Extract the code parameter from the captured URL for token exchange with the OAuth provider.
- Works across desktop-style OAuth flows (redirect_uri=http://localhost) and common providers such as Google and GitHub.
Quick Start
Run Playwright automation with a route interception registered before triggering the OAuth flow, then capture and extract the code from the redirected URL.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: playwright-oauth-code-capture Download link: https://github.com/strataga/claude-setup/archive/main.zip#playwright-oauth-code-capture Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.