Check membership before exporting a workspace
The handler checks that a user is signed in, but passes the requested workspace ID to a query with no membership filter. In this example, another workspace’s export could be returned.
route.ts:38–42exports.ts:18–22 · auth.ts:4–8Request an export using a workspace you don’t belong to. Expect 403 or 404.