From c4b5d63cefeb4d29cbbfaea7e1d5e505a5b5ba69 Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 4 Dec 2025 14:18:28 +0700 Subject: [PATCH] add logs --- src/app/actions/auth.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/actions/auth.ts b/src/app/actions/auth.ts index b69f6b2..a2f12b6 100644 --- a/src/app/actions/auth.ts +++ b/src/app/actions/auth.ts @@ -109,9 +109,16 @@ export async function registration( } }); + console.log('response <======'); + console.log(response); + console.log('process.env.SESSION_SECRET <======'); + console.log(process.env.SESSION_SECRET); + if (response.ok) { + console.log('enter response ok <======'); let parsed = await response.json(); await createSession(parsed.token, email); + console.log('complite response ok <======'); } else { throw new Error(` -error-1. status: ${response.status}