// auth.ts import NextAuth from "next-auth" import GitHub from "next-auth/providers/github" export const { auth, handlers } = NextAuth({ providers: [GitHub] }) // middleware.ts export { auth as middleware } 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" impor
![Auth.js | Authentication for the Web](https://cdn-ak-scissors.b.st-hatena.com/image/square/901847deadbb240ccdfeab2e4c18a33aedf06156/height=288;version=1;width=512/https%3A%2F%2Fauthjs.dev%2Fimg%2Fog-image.png)