This commit is contained in:
Karol Wypchlo 2021-02-17 13:51:57 +01:00
parent 6cbe8323d4
commit e7f10a2830
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ 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) {
return { return {
error,
// redirect: { // redirect: {
// permanent: false, // permanent: false,
// destination: `${config.kratos.browser}/self-service/settings/browser`, // destination: `${config.kratos.browser}/self-service/settings/browser`,
@ -52,8 +53,9 @@ export async function getServerSideProps(context) {
// }, // },
// }; // };
export default function Settings({ flow }) { export default function Settings({ flow, error }) {
console.log(flow); console.log("flow", flow);
console.log("error", error);
return null; return null;
// const fields = flow.methods.link.config.fields // const fields = flow.methods.link.config.fields