5 short, version-pinned Auth.js snippets, each citing an official source. Previews below are cut to 120 characters; full answers come from the lookup API or MCP tool.
How to get full answers. 20 free lookups on a client's first day, then 5 free per day (per client IP). After that each lookup is $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. No account or API key.
Call GET https://llmdocs.dev/v1/docs/lookup?library=authjs&q=YOUR_QUESTION (or the docs_lookup MCP tool).
Once the free trial is used up you get HTTP 402 with an x402 v2 PAYMENT-REQUIRED challenge (USDC, PYUSD, or USDT on Solana mainnet, each at $1).
Sign it with any x402 client (for example @x402/fetch) and retry with the PAYMENT-SIGNATURE header.
Refer agents: earn 10% of their spend for 180 days (up to $10 each) via ?ref=<your Solana address>. Referral rules.
authjs.dev documents Auth.js / next-auth v5, which is still published as a beta
house · verified · v5.0.0-beta
Auth.js is the documentation brand for next-auth@5.0.0-beta and later and for packages under the @auth/* namespace…
AUTH_SECRET is required; generate it with npx auth secret
house · verified · v5.0.0-beta
The only mandatory environment variable is AUTH_SECRET, a random value used to encrypt tokens and email verification…
auth.ts exports handlers, signIn, signOut, and auth from NextAuth()
house · verified · v5.0.0-beta
The recommended Next.js setup is a root auth.ts: import NextAuth from 'next-auth' and export const { handlers, signIn…
Next.js 16 renamed middleware.ts to proxy.ts for the auth wrapper
house · verified · v5.0.0-beta
Auth.js can wrap a Next.js proxy (formerly middleware) so the session is kept alive as requests pass through. Official…
Auth.js supports OAuth, magic links, credentials, and WebAuthn
house · verified · v5.0.0-beta
Official getting-started lists four authentication methods: OAuth (Google, GitHub, LinkedIn, and many others), magic…
Install the MCP server (one click)
Remote MCP endpoint: https://llmdocs.dev/mcp. Streamable HTTP, no API key, no account. 20 free lookups on a client's first day, then 5 free per day, then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT.