# Oauth

> Oauth is an Agent Skill for apps & automation published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

OAuth 2.0/OIDC flows, provider integration, and token handling.

- Skill name: `oauth`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/web-development/skills/oauth/SKILL.md
- Repository: a5c-ai/babysitter (1,548 GitHub stars when collected)

## SKILL.md

# OAuth Skill

Expert assistance for OAuth 2.0 and OpenID Connect implementation.

## Capabilities

- Implement OAuth flows
- Integrate providers (Google, GitHub)
- Handle PKCE
- Manage tokens
- Configure OIDC

## OAuth Flow

```typescript
// Authorization Code Flow with PKCE
const codeVerifier = generateCodeVerifier();
const codeChallenge = await generateCodeChallenge(codeVerifier);

const authUrl = new URL('https://provider.com/authorize');
authUrl.searchParams.set('client_id', CLIENT_ID);
authUrl.searchParams.set('redirect_uri', REDIRECT_URI);
authUrl.searchParams.set('response_type', 'code');
authUrl.searchParams.set('scope', 'openid profile email');
authUrl.searchParams.set('code_challenge', codeChallenge);
authUrl.searchParams.set('code_challenge_method', 'S256');
```

## Target Processes

- oauth-integration
- social-login
- sso-implementation

---

Source: https://www.openparable.com/skill/apps-automation/oauth (OpenParable). Cite the canonical URL above.
