settings
This commit is contained in:
parent
be29780c25
commit
8852d38bb3
|
@ -22,9 +22,9 @@ export async function getServerSideProps(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.log("headers", context.req.headers);
|
// console.log("headers", context.req.headers);
|
||||||
const { data: session } = await kratos.whoami(context.req.headers.cookie, context.req.headers.authorization);
|
const { data: session } = await kratos.whoami(context.req.headers.cookie, context.req.headers.authorization);
|
||||||
console.log(session);
|
console.log(JSON.stringify(session));
|
||||||
return { flow: "NOT YET" };
|
return { flow: "NOT YET" };
|
||||||
// const { status, data } = await kratos.getSelfServiceSettingsFlow(flow);
|
// const { status, data } = await kratos.getSelfServiceSettingsFlow(flow);
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ export async function getServerSideProps(context) {
|
||||||
|
|
||||||
// throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
// throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
permanent: false,
|
permanent: false,
|
||||||
|
|
Reference in New Issue