email: verifyEmail()

in source/services/core/index.js [81:98]


      email: verifyEmail(event['userInfo']['email']) ? event['userInfo']['email'] : "",
      sub: verifySub(event['userInfo']['sub']) ? event['userInfo']['sub'] : ""
    }
  };
  return sanitizedEvent;
}

const handler = (event, context, callback) => {
  console.log(JSON.stringify(event));
  const parsedEvent = sanitizeEvent(event);
  console.log(JSON.stringify(parsedEvent));

  const language = process.env.botLanguage;
  const botId = process.env.botId;
  const botAliasId = process.env.botAliasId;
  try{
    const lexruntimev2 = new AWS.LexRuntimeV2({apiVersion: '2020-08-07', ...options});
    const params = {