From 8a296dc539892f579aa11b06f5fe594188fc4c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Fri, 13 Sep 2024 13:28:32 +0200 Subject: [PATCH] Logs values of redirect --- src/composition.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/composition.ts b/src/composition.ts index 7ab23475..58da544c 100644 --- a/src/composition.ts +++ b/src/composition.ts @@ -105,6 +105,12 @@ export const { signIn, auth, handlers: authHandlers } = NextAuth({ strategy: "database" }, callbacks: { + async redirect({ url, baseUrl }) { + console.log("REDIRECT") + console.log(`url = ${url}`) + console.log(`baseUrl = ${baseUrl}`) + return baseUrl + }, async signIn({ user, account }) { return await logInHandler.handleLogIn({ user, account }) },