const MNOTE_WEB_AUTH_COOKIE_PATH = "/api/auth/mnote-web-token"; export async function ensureMnoteWebAuthCookie(): Promise { const response = await fetch(MNOTE_WEB_AUTH_COOKIE_PATH, { method: "GET", credentials: "include", cache: "no-store", }); if (!response.ok) { throw new Error("mnote-web 鉴权 cookie 准备失败"); } }