© 2026 Hedgehog Software, LLC
signIn("google")
api/auth/error
app/api/auth/[...next-auth]/route.ts
import { env } from "@/env"; import NextAuth, { type NextAuthOptions } from "next-auth"; import GoogleProvider from "next-auth/providers/google"; export const authOptions: NextAuthOptions = { providers: [ GoogleProvider({ clientId: env.GOOGLE_CLIENT_ID, clientSecret: env.GOOGLE_SECRET, }), ], session: { strategy: "jwt" } }; const handler = NextAuth(authOptions); export { handler as GET, handler as POST };