settings
This commit is contained in:
parent
00f7dd3a0b
commit
be29780c25
|
@ -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);
|
||||||
|
|
Reference in New Issue