first commit
This commit is contained in:
15
auth.ts
Normal file
15
auth.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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 등등
|
||||
});
|
||||
Reference in New Issue
Block a user