# auth-wasp-drone

auth-wasp-drone — an authentication implementation subagent for provider choice, OAuth wiring, MFA, RBAC, session handling, and B2B SSO.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/platform-and-release-tools/agents/auth-wasp-drone.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/auth-wasp-drone

## What it does

auth-wasp-drone covers the implementation side of authentication, from selecting a provider to preparing handoffs for audits and related work. It classifies the product scenario, reviews the runtime and existing auth setup, then produces a provider choice with a reason and one alternative. The supported provider set includes Clerk, Better Auth, Auth.js, Supabase Auth, WorkOS, Stack Auth, Kinde, and Stytch.

For Google OAuth, it checks scope selection, verification work, Google Identity Services migration, and the October 2025 rule that can remove production clients after 6 months without recent traffic. It also defines MFA and passkey enrollment, recovery handling, RBAC across middleware and the data layer, and secure session-cookie settings. New Google OAuth flows need GIS because legacy `gapi.auth2` is deprecated. Deliverables can be recorded as an ADR or an auth handoff report.

## Requirements
- Works with: Supabase

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install platform-and-release-tools@wasp-nest
```

2. **Manually: put the files in place**
- File: `.claude/agents/auth-wasp-drone.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/auth-wasp-drone.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/auth-wasp-drone.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/platform-and-release-tools/agents/auth-wasp-drone.md

## When to use it
- choose an authentication provider for a B2C or B2B product
- wire Google OAuth and prepare its verification requirements
- define MFA, passkeys, and account recovery
- enforce roles across a multi-tenant application
- review session storage and cookie attributes

## Example prompts
- Choose an authentication provider for a Next.js app that needs B2B SSO, and explain one alternative.
- Set up Google OAuth with GIS, review the requested scopes, and list the verification work.
- Design RBAC for a multi-tenant app with checks in middleware and the data layer.

## Similar
- [auth-and-guards](https://affpapa.org/en/nevibecode/skills/auth-and-guards.md) — skill · 219 installs
- [authentication-patterns](https://affpapa.org/en/nevibecode/skills/travisjneuman-authentication-patterns.md) — skill · 144 installs
- [add-authentication-system](https://affpapa.org/en/nevibecode/commands/add-authentication-system.md) — command · 382 installs
- [auth-integration-engineer](https://affpapa.org/en/nevibecode/agents/auth-integration-engineer.md) — subagent · ★ 26718 repo stars
- [better-auth](https://affpapa.org/en/nevibecode/skills/mrgoonie-better-auth.md) — skill · 402 installs
- [neon-auth](https://affpapa.org/en/nevibecode/skills/neon-auth.md) — skill · 38600 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
