docs: standardize AgendaMax demo access

This commit is contained in:
AgendaPro Dev
2026-07-27 11:36:42 -06:00
parent 0e6195ce23
commit 6355d18a07
10 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -27,11 +27,11 @@ async function findSlot(slug, serviceId, maxDays = 30) {
}
// /me now works (the bug we fixed) — login first to get a real token
const { json: login } = await req("POST", "/auth/login", { email: "owner@agendapro.demo", password: "demo1234" });
const { json: login } = await req("POST", "/auth/login", { email: "owner@agendamax.demo", password: "demo1234" });
check("login owner", !!login.token && login.user?.role === "owner", JSON.stringify(login).slice(0, 100));
const t = login.token;
const { json: me } = await req("GET", "/auth/me", null, t);
check("/api/auth/me returns user", me.user?.email === "owner@agendapro.demo", JSON.stringify(me).slice(0, 100));
check("/api/auth/me returns user", me.user?.email === "owner@agendamax.demo", JSON.stringify(me).slice(0, 100));
// Slug del negocio (para consultar slots públicos)
const { json: settings } = await req("GET", "/settings", null, t);