logout
This commit is contained in:
parent
764349b5bf
commit
7eb580558e
|
@ -27,8 +27,7 @@ const types = {
|
|||
},
|
||||
};
|
||||
|
||||
export default function Message({ type, title, items = [] }) {
|
||||
console.log("------", type, types[type]);
|
||||
export default function Message({ type = "info", title, items = [] }) {
|
||||
const { backgroundColor, titleColor, detailsColor, iconColor, icon } = types[type];
|
||||
|
||||
return (
|
||||
|
|
|
@ -24,6 +24,10 @@ export async function getServerSideProps(context) {
|
|||
try {
|
||||
const { status, data } = await kratos.getSelfServiceRecoveryFlow(flow);
|
||||
|
||||
console.log("================================================================");
|
||||
console.log(flow);
|
||||
console.log("================================================================");
|
||||
|
||||
if (status === 200) return { props: { flow: data } };
|
||||
|
||||
throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
||||
|
|
Reference in New Issue