# Claude Code chooses auth implementations across 50 trials

@Parbhat03 reports asking Claude Code to add authentication to a Next.js app 50 times. In the reported results, it wrote the auth itself 40 times and selected Auth.js 10 times.

Agent: Claude (via Claude Code)
Tools: Claude Code, Next.js, Auth.js
Category: Software & DevOps
Date: 2026-11-01

Outcome: @Parbhat03 reports 40 self-written auth implementations and 10 Auth.js selections across 50 requests. Clerk, Auth0, Supabase Auth, WorkOS and three unnamed alternatives received 0 of 50; security and correctness were not assessed in the capture.

## Steps

1. The poster asked Claude Code to add authentication to a Next.js app 50 times.
2. In 40 reported trials, Claude Code skipped SDKs and wrote the authentication itself.
3. In 10 reported trials it picked Auth.js; the poster reports 0 of 50 for the other listed alternatives.

Human oversight: The poster issued the repeated authentication task and reported the implementation counts. Exact prompts, reset conditions, model settings and security review are not supplied.

Source: [@Parbhat03](https://x.com/Parbhat03/status/2116961619444199639)

Canonical URL: https://agentsinuse.com/use-cases/claude-code-nextjs-auth-fifty-trial-comparison/
