Files
ef_front/auth.ts

15 lines
336 B
TypeScript
Raw Normal View History

2025-09-07 22:57:43 +00:00
// src/auth.ts
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [
Google({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
// ...callbacks 등등
});