mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
fix: local config, empty accounts page
This commit is contained in:
@@ -17,6 +17,7 @@ async function loadSessions(): Promise<Session[]> {
|
|||||||
);
|
);
|
||||||
return response?.sessions ?? [];
|
return response?.sessions ?? [];
|
||||||
} else {
|
} else {
|
||||||
|
console.info("No session cookie found.");
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ const nextConfig = {
|
|||||||
port: "",
|
port: "",
|
||||||
pathname: "/**",
|
pathname: "/**",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
protocol: "http",
|
||||||
|
hostname: "localhost",
|
||||||
|
port: "8080",
|
||||||
|
pathname: "/**",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export async function getAllSessionIds(): Promise<any> {
|
|||||||
const sessions: SessionCookie[] = JSON.parse(stringifiedCookie?.value);
|
const sessions: SessionCookie[] = JSON.parse(stringifiedCookie?.value);
|
||||||
return sessions.map((session) => session.id);
|
return sessions.map((session) => session.id);
|
||||||
} else {
|
} else {
|
||||||
return Promise.reject();
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user