Files
klz-cables.com/.pnpm-store/v10/files/e6/204cbf2835bdce9592638aeaf9a3e34197cf6bfe4dee1d2a4f41afe064149eb369968b7a6acbb86fbfb425e1487b7508794a1ac5befc3cd50545f4b8f6bc7f
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

26 lines
809 B
Plaintext

import { status as httpStatus } from 'http-status';
import { getRequestCollectionWithID } from '../../utilities/getRequestEntity.js';
import { headersWithCors } from '../../utilities/headersWithCors.js';
import { verifyEmailOperation } from '../operations/verifyEmail.js';
export const verifyEmailHandler = async (req)=>{
const { id, collection } = getRequestCollectionWithID(req, {
disableSanitize: true
});
const { t } = req;
await verifyEmailOperation({
collection,
req,
token: id
});
return Response.json({
message: t('authentication:accountVerified')
}, {
headers: headersWithCors({
headers: new Headers(),
req
}),
status: httpStatus.OK
});
};
//# sourceMappingURL=verifyEmail.js.map