@a11ywatch/core
Version:
a11ywatch central API
17 lines • 660 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.logout = void 0;
const config_1 = require("../../../../config");
function logout(_, __, context) {
var _a, _b;
if ((_a = context === null || context === void 0 ? void 0 : context.res) === null || _a === void 0 ? void 0 : _a.clearCookie) {
(_b = context === null || context === void 0 ? void 0 : context.res) === null || _b === void 0 ? void 0 : _b.clearCookie("jwt", config_1.cookieConfigs);
}
return {
code: 200,
success: true,
message: "Sign out success!",
};
}
exports.logout = logout;
//# sourceMappingURL=logout.js.map
;