Loading...
Loading...
Architectural reference for WorkOS AuthKit integrations. Fetch README first for implementation details.
npx skill4agent add workos/cli workos-authkit-baseWebFetch: {sdk-package-name} README from npmjs.com or GitHub| Phase | Task | Blocked By | Purpose |
|---|---|---|---|
| 1 | preflight | - | Verify env vars, detect framework |
| 2 | install | preflight | Install SDK package |
| 3 | callback | install | Create OAuth callback route |
| 4 | provider | install | Setup auth context/middleware |
| 5 | ui | callback, provider | Add sign-in/out UI |
| 6 | verify | ui | Build confirmation |
pnpm-lock.yaml? → pnpm
yarn.lock? → yarn
bun.lockb? → bun
else → npmClient-side framework? → AuthKitProvider wraps app
Server-side framework? → Middleware handles sessions
Hybrid (Next.js)? → Both may be neededWORKOS_REDIRECT_URI| Variable | Purpose | When Required |
|---|---|---|
| Server authentication | Server SDKs |
| Client identification | All SDKs |
| OAuth callback URL | Server SDKs |
| Session encryption (32+ chars) | Server SDKs |
NEXT_PUBLIC_*WORKOS_REDIRECT_URInode_modulesWORKOS_REDIRECT_URIWORKOS_COOKIE_PASSWORDopenssl rand -base64 32/auth/callback