Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The login command will always "choose to relog" and remove cookies #25

Open
maorRoz opened this issue Aug 1, 2021 · 0 comments · May be fixed by #52
Open

The login command will always "choose to relog" and remove cookies #25

maorRoz opened this issue Aug 1, 2021 · 0 comments · May be fixed by #52

Comments

@maorRoz
Copy link

maorRoz commented Aug 1, 2021

My tests always try to "clear cookies" and relog to the auth0. after I went through the code of the "login" command carefully it seems to me pretty clear why:

It seems that the cachedUsername variable is never being set to some value and left undefined through the whole life-cycle of the code. therefore the code will always execute the clear cookies + relog flow no matter what.

I'm talking about the code here:
https://github.com/sir-dunxalot/cypress-nextjs-auth0/blob/master/src/commands/login.js

@lukevmorris lukevmorris linked a pull request Apr 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant