For months now, I have been wondering why cy.login seems to log me out and then back in every single time. Turns out, our cookie is chunked, so looking for the cookie using the env var results in cy.cookie not finding the cookie since every one has a number appended to the end.
For months now, I have been wondering why
cy.login
seems to log me out and then back in every single time. Turns out, our cookie is chunked, so looking for the cookie using the env var results incy.cookie
not finding the cookie since every one has a number appended to the end.https://github.com/sir-dunxalot/cypress-nextjs-auth0/blob/2ccb99f3ad5c99637ba5b41185e87d838e6d1864/src/commands/login.js#L16-L21