fix(line): mark webhook route as plugin-authenticated

This commit is contained in:
Peter Steinberger
2026-03-02 16:27:41 +00:00
parent 6edb512efa
commit d74bc257d8
2 changed files with 4 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ describe("monitorLineProvider lifecycle", () => {
});
await vi.waitFor(() => expect(registerPluginHttpRouteMock).toHaveBeenCalledTimes(1));
expect(registerPluginHttpRouteMock).toHaveBeenCalledWith(
expect.objectContaining({ auth: "plugin" }),
);
expect(resolved).toBe(false);
abort.abort();

View File

@@ -288,6 +288,7 @@ export async function monitorLineProvider(
const normalizedPath = normalizePluginHttpPath(webhookPath, "/line/webhook") ?? "/line/webhook";
const unregisterHttp = registerPluginHttpRoute({
path: normalizedPath,
auth: "plugin",
pluginId: "line",
accountId: resolvedAccountId,
log: (msg) => logVerbose(msg),