docs: standardize AgendaMax demo access
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user