chore(debug): next-auth url
This commit is contained in:
1
auth.ts
1
auth.ts
@@ -79,6 +79,7 @@ export const config = {
|
|||||||
return session
|
return session
|
||||||
},
|
},
|
||||||
async redirect({ baseUrl, url }) {
|
async redirect({ baseUrl, url }) {
|
||||||
|
console.log({ redirect_baseUrl: baseUrl, redirect_url: url })
|
||||||
if (url.startsWith("/")) {
|
if (url.startsWith("/")) {
|
||||||
// Allows relative callback URLs
|
// Allows relative callback URLs
|
||||||
return `${baseUrl}${url}`
|
return `${baseUrl}${url}`
|
||||||
|
|||||||
Reference in New Issue
Block a user