Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We need to load the widget session from req.session.access_token (Lexi). We also need to remove any req.session.access_token = req.Widgetsession.lexi_access_token that we did to avoid breaking the code.

Keep in mind that postman Postman is sending cookies so session got lost.

...

replace last line with the following:
pm.cookies.jar().unset(pm.environment.get("pos_url"),'connect.sid');

This is done to get the postman working on different enviroments, also you need to whitelist all the different enviroments, for example, “posapi-stguat.flexiti.fi” (without http:// or https://)

...