From be29780c25ad86e7b9df2a9cdb2e6eea0bc28eb5 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 17 Feb 2021 13:39:37 +0100 Subject: [PATCH] settings --- packages/dashboard/src/pages/settings.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/dashboard/src/pages/settings.js b/packages/dashboard/src/pages/settings.js index 25011164..1c4c34f2 100644 --- a/packages/dashboard/src/pages/settings.js +++ b/packages/dashboard/src/pages/settings.js @@ -22,12 +22,8 @@ export async function getServerSideProps(context) { } try { - console.log("Cookie", context.req.getHeader("Cookie")); - console.log("Authorization", context.req.getHeader("Authorization")); - const { data: session } = await kratos.whoami( - context.req.getHeader("Cookie"), - context.req.getHeader("Authorization") - ); + console.log("headers", context.req.headers); + const { data: session } = await kratos.whoami(context.req.headers.cookie, context.req.headers.authorization); console.log(session); return { flow: "NOT YET" }; // const { status, data } = await kratos.getSelfServiceSettingsFlow(flow);