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 }) },