@kaddo/cli 3.69.2 → 3.69.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,6 +186,8 @@ async function createAdminServer(opts) {
|
|
|
186
186
|
const sessionId = sessionManager.createSession();
|
|
187
187
|
app.addHook("onRequest", async (request, reply) => {
|
|
188
188
|
if (!request.url.startsWith("/api/")) return;
|
|
189
|
+
if (request.url.startsWith("/api/v1/admin/session")) return;
|
|
190
|
+
if (request.url.startsWith("/api/v1/admin/health")) return;
|
|
189
191
|
const cookieSession = request.cookies["kaddo-session"];
|
|
190
192
|
if (!sessionManager.validateSession(cookieSession)) {
|
|
191
193
|
reply.code(401).send({ error: { code: "SESSION_INVALID", message: "Invalid or expired session." } });
|