GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Auth.js
  • Getting Started
  • Guides
  • API reference
  • Concepts
  • Security
  • GitHub

This view

  • Original page
  • New address

GeezerVison is showing authjs.dev — Auth.js | Authentication for the Web

Skip to content
The Auth.js project is now part of Better Auth.
Auth.js
Authentication for the Web.
Free and open source.

Get Started

Source

More
// auth.ts
import NextAuth from "next-auth"
import GitHub from "next-auth/providers/github"
export const { auth, handlers } = NextAuth({ providers: [GitHub] })

// proxy.ts
export { auth as proxy } from "@/auth"

// app/api/auth/[...nextauth]/route.ts
import { handlers } from "@/auth"
export const { GET, POST } = handlers
// src/auth.ts
import { SvelteKitAuth } from "@auth/sveltekit"
import GitHub from '@auth/sveltekit/providers/github'

export const { handle } = SvelteKitAuth({
  providers: [GitHub],
})

// src/hooks.server.ts
export { handle } from "./auth"
// server.ts
import { express } from "express"
import { ExpressAuth } from "@auth/express"
import GitHub from "@auth/express/providers/github"

const app = express()

app.use("/auth/*", ExpressAuth({ providers: [GitHub] }))
// src/routes/[email protected]
import { QwikAuth } from "@auth/qwik"
import GitHub from "@auth/qwik/providers/github"
export const { onRequest, useSession } = QwikAuth$(() => ({ providers: [GitHub] }))

Highlighted Guides

See all
  • Configuring OAuth providersCustomize a built-in one or set up your own.
  • OAuth with GitHubStep-by-step guide to set up an OAuth provider.
  • Custom Signin PageCreate a page that matches your app's design.

Example Apps

  • Next.js LogoNext.js
    VisitClone
  • SvelteKit LogoSvelteKit
    VisitClone
  • Express LogoExpress
    VisitClone
  • Qwik LogoQwik
    VisitClone

Supports all these providers and more!

About Auth.js

  • Introduction
  • Security
  • Discord Community

Download

    GitHubNPM

Acknowledgements

    Contributors
Auth.js © Better Auth Inc. - 2026
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.