fix(line): mark webhook route as plugin-authenticated
This commit is contained in:
parent
6edb512efa
commit
d74bc257d8
@ -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();
|
||||
|
||||
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user