oauth-login

Automate OAuth login for Google and GitHub with local callback and token storage.

39|5|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/benjaminshoemaker/ai_coding_project_base --skill oauth-login
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-login
Source: https://github.com/benjaminshoemaker/ai_coding_project_base/tree/main/.claude/skills/oauth-login
Command: npx skills add https://github.com/benjaminshoemaker/ai_coding_project_base --skill oauth-login

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the OAuth login flow for browser verification and token storage, reducing manual steps and credential handling.

Core Features & Use Cases

  • OAuth providers supported: Google and GitHub login flows with local callback handling.
  • Token management: Stores access tokens (and refresh tokens when available) in a project .env file.
  • Use Case: When a browser-based verification is required, run this skill to complete login and prepare tokens for verification steps.

Quick Start

Use /oauth-login <provider> to start a one-click login flow for Google or GitHub, then follow the prompts to authorize and save tokens.

Frequently Asked Questions about oauth-login

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

FAQPage Schema
How do I automate OAuth login and token storage for browser-based verification?

Automate OAuth login by running a browser flow that handles local callbacks and persists access tokens directly into your project's environment variables. This reduces manual login steps and credential handling for browser verification.

Can I use Playwright MCP to handle Google and GitHub OAuth login flows?

Yes, Playwright MCP is required to automate the Google and GitHub OAuth login flows. It drives the browser-based verification process, handles the local OAuth callback, and captures the tokens for storage.

What do I need to set up before automating OAuth login and saving tokens to a .env file?

You need valid OAuth credentials with appropriate redirect URIs configured for Google or GitHub, along with a browser automation tool like Playwright MCP. The skill uses these to complete the login flow and write tokens to your environment.

Does this OAuth automation skill support storing refresh tokens as well as access tokens?

Yes, the OAuth automation skill stores access tokens in your project's .env file and saves refresh tokens when they are available from the provider's response during the login flow.

What is the best way to trigger an automated OAuth login flow for GitHub or Google?

The best way to trigger an automated OAuth login flow is to run the command with your chosen provider, then follow the prompts to authorize the application and automatically save the returned tokens to your environment.

Are there limitations when using browser automation for local OAuth callback verification?

Browser automation for local OAuth callback verification is limited to Google and GitHub providers and requires valid OAuth credentials with correctly configured redirect URIs to successfully complete the token exchange and storage.