nodeops-auth
Installation
SKILL.md
NodeOps Auth Setup
Add NodeOps PKCE OAuth to an existing Next.js (App Router) project.
Prerequisites
Before starting, verify the project is compatible:
- App Router required: Check if
app/directory exists. If onlypages/exists, stop and tell the user: "This skill only supports Next.js App Router. Your project uses Pages Router." - Next.js required: Check
package.jsonfornextin dependencies. If missing, stop and tell the user this is a Next.js-only package.
Idempotency
Before each step, check if the work is already done. Skip steps that are already complete:
- If
@nodeops-createos/integration-oauthis already inpackage.jsondependencies, skip install. - If
app/api/auth/me/route.tsandapp/api/auth/token/route.tsalready exist, skip route creation. - If
AuthProviderfrom@nodeops-createos/integration-oauthis already imported in the layout, skip wrapping. - If
app/callback/page.tsx(or.jsx) already exists, skip callback page creation. - If
.env.examplealready exists and containsNODEOPS_, skip env file creation.