diff --git a/packages/dashboard/src/pages/auth/login.js b/packages/dashboard/src/pages/auth/login.js index b65238e2..7fdbe1fe 100644 --- a/packages/dashboard/src/pages/auth/login.js +++ b/packages/dashboard/src/pages/auth/login.js @@ -29,6 +29,8 @@ 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}`); diff --git a/packages/dashboard/src/pages/auth/registration.js b/packages/dashboard/src/pages/auth/registration.js index 711d50ad..b098787d 100644 --- a/packages/dashboard/src/pages/auth/registration.js +++ b/packages/dashboard/src/pages/auth/registration.js @@ -29,6 +29,8 @@ 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}`); @@ -79,9 +81,6 @@ export default function Registration({ flow }) { initialValues: fields.reduce((acc, field) => ({ ...acc, [field.name]: field.value }), {}), }); - console.log(fields); - console.log("fieldProps", fieldProps); - return (