Files
klz-cables.com/.pnpm-store/v10/files/4a/5d614ee3379faccf4fffbdde2cf0d1ce1813d0ab61d3a726fe6f4ee5388f999ff97ca5cd4b5ee0990d880617972ff76edbcd1766b69246d64033c3277366e2
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

21 lines
796 B
Plaintext

import { generateExpiredPayloadCookie, isolateObjectProperty, logoutOperation } from 'payload';
export function logout(collection) {
async function resolver(_, args, context) {
const options = {
allSessions: args.allSessions,
collection,
req: isolateObjectProperty(context.req, 'transactionID')
};
const result = await logoutOperation(options);
const expiredCookie = generateExpiredPayloadCookie({
collectionAuthConfig: collection.config.auth,
config: context.req.payload.config,
cookiePrefix: context.req.payload.config.cookiePrefix
});
context.headers['Set-Cookie'] = expiredCookie;
return result;
}
return resolver;
}
//# sourceMappingURL=logout.js.map