# Managing Auth Pipeline

> Handles the authentication flow including Login, Signup, OAuth, and Password Recovery. Use when building auth pages or logic.

- Skill: `majiayu000/managing-auth-pipeline` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/managing-auth-pipeline`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/managing-auth-pipeline/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/managing-auth-pipeline

---


# Authentication Pipeline

## When to use this skill
- Developing the `/auth` directory.
- Implementing "Sign in with Google" or "GitHub".
- Handling session persistence in Next.js.

## Workflow
- [ ] Create auth forms (Signup/Login).
- [ ] Implement `account.create()` and `account.createEmailPasswordSession()`.
- [ ] Set up OAuth redirection using `account.createOAuth2Session()`.
- [ ] Handle logout with `account.deleteSession('current')`.

## Key Logic
- **OAuth**: Ensure redirect URLs are correctly whitespaced in Appwrite Console.
- **Persistence**: Appwrite handles cookies automatically in the browser; use Middleware for route protection.

## Instructions
- **Error Feedback**: Use toast notifications for "Invalid credentials" or "Email already exists".
- **Social Auth**: Prioritize Google/GitHub for premium UX.

