Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onOperation: async (message: { payload: { id_token?: string } }, params, webSocket) => {
logger.trace('onOperation message');
const context = await modules.createContext(null, message.payload);
const contextServices = await serviceContext(null, message.payload);
return {
...params,
context: {
...context,
...contextServices,
},
};
},
}, {