chore(debug): next-auth url

This commit is contained in:
Michael Zetterberg
2024-04-28 09:40:09 +02:00
parent 8fb7ac9a2a
commit 8e05f03f16

View File

@@ -79,6 +79,7 @@ export const config = {
return session
},
async redirect({ baseUrl, url }) {
console.log({ redirect_baseUrl: baseUrl, redirect_url: url })
if (url.startsWith("/")) {
// Allows relative callback URLs
return `${baseUrl}${url}`