In this video, I use a combination of cy.dataSession and cy.session and if the data needs to be recomputed, we invalidate all saved Cypress sessions to have the user account log in again with the recomputed user.
See the source in https://github.com/bahmutov/chat.io and the plugin code in https://github.com/bahmutov/cypress-d...