middle
This commit is contained in:
12
auth.ts
12
auth.ts
@@ -11,5 +11,15 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
|
||||
],
|
||||
|
||||
// ...callbacks 등등
|
||||
events: {
|
||||
async signIn({ user, account, profile }) {
|
||||
console.log("[NextAuth] signIn user:", {
|
||||
id: (user as any)?.id,
|
||||
name: user?.name,
|
||||
email: user?.email,
|
||||
image: (user as any)?.image,
|
||||
provider: account?.provider,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user