Short answer (tested 2026-12-01, @workos-inc/authkit-nextjs 4.6.4, Next.js 16.4.6, workos CLI 0.24.0, free staging environment). AuthKit works, but the dashboard quickstart, followed verbatim, does not: its home page calls getSignUpUrl() while rendering a Server Component, which the SDK's own README forbids, so / returns 500:
Error: Cookies can only be modified in a Server Action or Route Handler.The account-free installer (npx workos@latest install) aborted in 2 of 3 runs after its built-in AI agent overwrote our --redirect-uri. Neither the hosted page nor the API locked the account after 68 wrong passwords. Staging is free with no card; Production requires billing information first.
| Check (staging env, 2026-12-01) | Result | |---|---| | Developer signup | Email → password → 6-digit code (mail 11.3 s) → team name. No card, phone or CAPTCHA | | Fresh create-next-app → first login via the docs quickstart | 6 min 20 s (incl. ~1.5 min of our harness retries), through 4 breakages (below) | | npx workos@latest install --redirect-uri http://localhost:3002/callback, no account | Environment provisioned in under 30 s; install aborted 2 of 3 runs (installer_error) | | Verification / sign-in code mail to our inbox | 2.2, 2.4, 2.6, 2.8, 2.9 s (median 2.6 s, n=5); codes only, no links | | Email code login (Magic Auth) | Off on a new environment; one dashboard toggle | | Headless Playwright sign-in, default settings | No bot wall; signed in 2.3 s after submit | | Same with Radar enabled (free toggle in staging) | Email-code challenge ("Complete the code challenge"); passable with inbox access, 12.9 s | | 10 wrong passwords ~28 s apart, then the right one | All "Invalid email or password"; right one signs in. No lockout | | 32 wrong passwords via /user_management/authenticate (20 in 12 s) | All 400 invalid_credentials, no 429; right one 200 | | User export | Dashboard CSV in ~3 s, no password hashes (support request only, per docs) |
WorkOS AuthKit Next.js quickstart: `getSignUpUrl` in a Server Component returns 500
The quickstart from workos.com/docs/authkit/nextjs, pasted into a fresh Next.js 16.4.6 app, hit four errors in order:
1. The layout snippet is untyped JSX in a .tsx file: TS7031: Binding element 'children' implicitly has an 'any' type. 2. The docs put the pages at /app/home-page and /app/protected, but the proxy matcher is ['/']. Both pages return 500: You are calling 'withAuth' on a route that isn't covered by the AuthKit middleware. Make sure it is running on all paths you are calling 'withAuth' from by updating your middleware config in 'middleware.(js|ts)'. (The message still says middleware; Next 16 calls the file proxy.ts.) 3. With the home page moved to /, Next 16.4's default cacheComponents: true fails prerendering at getSignUpUrl() (crypto.getRandomValues()). 4. With await connection() added, / still 500s with the cookies error above. The authkit-nextjs 4.6.4 README says getSignInUrl() and getSignUpUrl() "set a PKCE cookie, so call them in a Route Handler or Server Action, not while rendering a Server Component", which is what the docs page does. With cacheComponents off the error is the same, so the cause is the docs, not Next's cache mode.
Fix: a sign-up route handler, plus <Suspense> around page bodies so next build passes.
// app/signup/route.tsimport { getSignUpUrl } from '@workos-inc/authkit-nextjs';import { redirect } from 'next/navigation';export const GET = async () => { redirect(await getSignUpUrl()); };A new environment has no Redirect, Initiate-login or Sign-out URI. Signing out without one lands on error.workos.com/user_management/app-homepage-url-not-found ("Couldn't sign in"), though the session is revoked.
`npx workos install` overwrites `--redirect-uri` and aborts with `installer_error`
The installer provisions an unclaimed environment with no account, writes WORKOS_API_KEY, WORKOS_CLIENT_ID and WORKOS_CLAIM_TOKEN to .env.local, then runs its own AI agent (Claude Agent SDK) to write the code. We passed the documented --redirect-uri http://localhost:3002/callback. In runs 1 and 3, after build and lint passed, the agent edited .env.local back to port 3000, "so it now matches the default dev server port", and the installer stopped:
{"error":{"code":"installer_error","message":"The app callback URL changed during installation. Confirm it before configuring WorkOS."}}No redirect URI was registered, so sign-in hit /redirect-uri-invalid. In run 2 (reusing run 1's stored environment), the agent changed the dev script to next dev -p 3002 instead and succeeded (190.7 s). Reported as workos/cli#278. Headless fix: workos config redirect add refuses API keys ("uses your WorkOS dashboard session and does not accept API keys"), so use the API:
npx workos@latest api /user_management/redirect_uris --method POST --data='{"uri":"http://localhost:3002/callback"}' --yesA headless sign-up on the CLI-built app then worked. workos verify-login (3.5 s) only checks the API password grant, not the browser redirect.
WorkOS AuthKit brute force: no per-account lockout, documented rate limit not hit
WorkOS's rate-limit page lists /user_management/authenticate at "10 requests per 60 seconds per email". In staging, 12 wrong passwords in 9 s, then 20 in 12 s, all returned 400 invalid_credentials with x-ratelimit-remaining counting down from 600; the correct password then returned 200. Through the hosted page, 10 failures ~28 s apart (Radar off) and 10 back-to-back (Radar on) each showed "Invalid email or password", and the right password worked. Radar's "Brute force attack" detector stayed at 0 after all 68 failures. With Radar on, the correct password was challenged from a headless browser but not through the raw API. Staging only; production may enforce more.
WorkOS Radar: off by default; when on, the bot wall is an email code, not a CAPTCHA
Radar is off on a new environment, yet it logged our headless Playwright runs as "Bot detection" and allowed them. After "Enable protection" (no card in staging), headless sign-ins with the right password went to /radar-challenge: "Complete the code challenge. Enter the code sent to …". An agent with inbox access passes it; our headed agent browser was never challenged.
WorkOS free tier: staging is free; Production asks for billing information first
The 1M-MAU free tier is a Production number, and Production can't be switched on without a payment method: "Add billing information to enable Production … You won't be charged until you enable your first paid feature in production." We stopped there. Staging uses *-staging.authkit.app and a [STAGING] mail subject prefix. Analytics showed "Active users 1" after 20 sign-ins by one user; billed MAU isn't visible without Production.
WorkOS user export: profile CSV only; password hashes need a support ticket
Users → Export CSV took about 3 s and gave 13 profile columns; no hashes there or in the API user object. WorkOS's export guide says hashes ($2b$10$ bcrypt) are released "only … through a request to WorkOS support" (not filed).
Method
2026-12-01, 17:39–19:16 UTC, free staging environments only. Client: Ubuntu 26.04 arm64 VM (Node 22.22.1) on a Mac in India; timings are network-bound. Browsers: headless Playwright 1.65.1 and a headed agent-driven Chromium. Test users deleted afterwards. Evidence: repro/NOTES.md (timeline), repro/logs/, repro/api/, repro/inbox/, repro/docs/ (docs as fetched), repro/app-src/, repro/shots/.
Re-tested: 2026-12-01. Outdated if the AuthKit Next.js docs move getSignUpUrl into a route handler, the installer keeps an explicit --redirect-uri, or WorkOS starts enforcing the per-email authenticate limit.