From 7b9aff87ebba50b2ee43f87abaf0d6b64f9c835b Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 4 Oct 2024 14:59:31 -0500 Subject: [PATCH] Add auth log --- src/pages/api/auth/[...nextauth].js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js index be18eee..b866c7b 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -121,6 +121,8 @@ export const authOptions = { return null; } + console.log("user in appConfig condition", user); + const updatedUser = await updateUser(user.id, {role: role.id}); if (!updatedUser) { console.error("Failed to update user");