← All components

Auth.js (NextAuth v5)

Auth.js / next-auth@5.0.0-beta.32 on Next.js App Router: auth.ts, /api/auth/[...nextauth], proxy.ts, GitHub provider. Pinned to the 20 Jul 2026 beta that includes @auth/core@0.41.3 security fixes.

Copy the files below, or open this folder on GitHub. Each file is stamped with a limited-use licence, generator and date. SHA-256 is of the published catalog bytes, before the stamp.

id
authjs
stack
Next.js
version
1.0.0
compatibility
nextjs >=16 <17 · react >=19 <20
requires
nextjs-base
env vars
AUTH_SECRET, AUTH_GITHUB_ID, AUTH_GITHUB_SECRET, AUTH_TRUST_HOST
Verified passing · daily buildIntegrity sha256:f7a3a3e28c0f4163

Files (4)

auth.ts · sha256:f7a3a3e28c0f4163…
// Licensed by BotKelp — https://www.botkelp.com

/**
 * Auth.js config (NextAuth v5).
 * Docs:
 *   https://authjs.dev/getting-started/installation?framework=next.js
 *   https://authjs.dev/getting-started/providers/github
 * Release: https://github.com/nextauthjs/next-auth/releases/tag/next-auth%405.0.0-beta.32
 * Homepage snippet (2026-09-06):
 *   import NextAuth from "next-auth"
 *   import GitHub from "next-auth/providers/github"
 * Env (inferred by Auth.js): AUTH_SECRET, AUTH_GITHUB_ID, AUTH_GITHUB_SECRET
 * Callback URL: {origin}/api/auth/callback/github
 */
import NextAuth from 'next-auth';
import GitHub from 'next-auth/providers/github';

export const { handlers, signIn, signOut, auth } = NextAuth({
  providers: [GitHub],
});