test
This commit is contained in:
parent
7a191257e3
commit
b7c789b536
@ -22,9 +22,16 @@ export async function GET(request: Request) {
|
|||||||
let session = null
|
let session = null
|
||||||
let authError = null
|
let authError = null
|
||||||
try {
|
try {
|
||||||
|
console.log("Debug endpoint: Calling auth()...")
|
||||||
session = await auth()
|
session = await auth()
|
||||||
|
console.log("Debug endpoint: auth() returned", {
|
||||||
|
hasSession: !!session,
|
||||||
|
sessionUser: session?.user,
|
||||||
|
sessionKeys: session ? Object.keys(session) : []
|
||||||
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
authError = err instanceof Error ? err.message : String(err)
|
authError = err instanceof Error ? err.message : String(err)
|
||||||
|
console.error("Debug endpoint: auth() error", authError)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to get cookie from Next.js cookie store
|
// Try to get cookie from Next.js cookie store
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user