This commit is contained in:
Karol Wypchlo 2021-02-17 13:39:37 +01:00
parent 00f7dd3a0b
commit be29780c25
1 changed files with 2 additions and 6 deletions

View File

@ -22,12 +22,8 @@ export async function getServerSideProps(context) {
} }
try { try {
console.log("Cookie", context.req.getHeader("Cookie")); console.log("headers", context.req.headers);
console.log("Authorization", context.req.getHeader("Authorization")); const { data: session } = await kratos.whoami(context.req.headers.cookie, context.req.headers.authorization);
const { data: session } = await kratos.whoami(
context.req.getHeader("Cookie"),
context.req.getHeader("Authorization")
);
console.log(session); console.log(session);
return { flow: "NOT YET" }; return { flow: "NOT YET" };
// const { status, data } = await kratos.getSelfServiceSettingsFlow(flow); // const { status, data } = await kratos.getSelfServiceSettingsFlow(flow);