From c6b992b34e0ed390b06900f36d8d6ea290aca911 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 8 Feb 2021 18:33:39 +0100 Subject: [PATCH] log flow --- packages/dashboard/src/pages/auth/login.js | 4 ++-- packages/dashboard/src/pages/auth/registration.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dashboard/src/pages/auth/login.js b/packages/dashboard/src/pages/auth/login.js index 7fdbe1fe..8acc09ce 100644 --- a/packages/dashboard/src/pages/auth/login.js +++ b/packages/dashboard/src/pages/auth/login.js @@ -29,8 +29,6 @@ export async function getServerSideProps(context) { try { const { status, data } = await kratos.getSelfServiceLoginFlow(flow); - console.log("flow", data); - if (status === 200) return { props: { flow: data } }; throw new Error(`Failed to retrieve flow ${flow} with code ${status}`); @@ -71,6 +69,8 @@ export default function Login({ flow }) { initialValues: fields.reduce((acc, field) => ({ ...acc, [field.name]: field.value }), {}), }); + console.log("flow", flow); + return (
diff --git a/packages/dashboard/src/pages/auth/registration.js b/packages/dashboard/src/pages/auth/registration.js index b098787d..1c88856c 100644 --- a/packages/dashboard/src/pages/auth/registration.js +++ b/packages/dashboard/src/pages/auth/registration.js @@ -29,8 +29,6 @@ export async function getServerSideProps(context) { try { const { status, data } = await kratos.getSelfServiceRegistrationFlow(flow); - console.log("flow", data); - if (status === 200) return { props: { flow: data } }; throw new Error(`Failed to retrieve flow ${flow} with code ${status}`); @@ -81,6 +79,8 @@ export default function Registration({ flow }) { initialValues: fields.reduce((acc, field) => ({ ...acc, [field.name]: field.value }), {}), }); + console.log("flow", flow); + return (