I am setting up E2E test for my app which uses oAuth for authentication.
cy.visit('app.domain.com).
cy.origin("auth.domain.com",()=>{
cy.get('user').type('user');
cy.get('pass').type('pass');
cy.get('login).click()
});
cy.url().should('contain', '/dashboard')
after clicking on login, it's unable to load dashboard of app as authentication fails because of missing cookie. I am using cypress version 10.10.0.
enter code here