I writing automated tests in Cypress for a web application that is protected by Keycloak. I have managed to retrieve the jwt token from keycloak, but I don't know what to do with it. I have seen that after you login into keycloak, you are redirected to your domain and keyclock sets cookies, local storage, etc. Is there a way to get the same results programmatically as keyclock does when you login in their page? With other words, have something like:
cy.getToken().then((token) => {
cy.login(token);
cy.visit(myDomain)
})