mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 08:32:39 +00:00
Merge pull request #23 from zitadel/localhost
fix: local config, empty accounts page
This commit is contained in:
@@ -17,6 +17,7 @@ async function loadSessions(): Promise<Session[]> {
|
||||
);
|
||||
return response?.sessions ?? [];
|
||||
} else {
|
||||
console.info("No session cookie found.");
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,12 @@ const nextConfig = {
|
||||
port: "",
|
||||
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);
|
||||
return sessions.map((session) => session.id);
|
||||
} else {
|
||||
return Promise.reject();
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user