@a11ywatch/core
Version:
a11ywatch central API
19 lines • 667 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPayLoad = void 0;
const getPayLoad = (context, overide) => {
var _a;
const { keyid, audience, subject } = ((_a = context === null || context === void 0 ? void 0 : context.user) === null || _a === void 0 ? void 0 : _a.payload) || {
keyid: null,
audience: null,
subject: null,
};
const id = overide === null || overide === void 0 ? void 0 : overide.id;
return {
subject,
audience,
userId: typeof id !== "undefined" ? id : keyid,
};
};
exports.getPayLoad = getPayLoad;
//# sourceMappingURL=query-payload.js.map
;