How to start a new session with a new configuration in a scenario

How can I start a new session with a different configuration in a scenario? I’ve tried with the session function but it seems that the passed configuration is not used. I’m using a puppeteer as a helper.

Below is how I’ve tried:

const secondProfile = {
    browser: 'chrome',
    url: 'http://localhost',
    basicAuth: {username:'user2', password:'user2'},

    show: true,
    waitForNavigation: "networkidle0",
    chrome: {
      userDataDir: 'some path'
    }
};

Feature('Login');

Scenario('Login test', (I) => {
    I.amOnPage('/');
    I.see('Welcome user 1');
    session('second', secondProfile, () => {
       I.amOnPage('/');
       I.see('Welcome user 2');
    });
});