-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix Backup cookie #227
Fix Backup cookie #227
Conversation
…ndition, add backup cookie tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments explaining which change does what
@@ -60,6 +61,7 @@ const setEnvironment = ( | |||
REACT_APP_KBASE_DOMAIN: domain, | |||
REACT_APP_KBASE_LEGACY_DOMAIN: legacy, | |||
REACT_APP_KBASE_BACKUP_COOKIE_NAME: backupCookie?.name || '', | |||
REACT_APP_KBASE_BACKUP_COOKIE_DOMAIN: backupCookie?.domain || '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the main issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the ability to test cookies independently, added new backup cookie tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should catch a mismatched configuration in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @dakotablair do you want to chime in?
This PR fixes the backup cookie issue. It fixes the cookie configuration, adds tests specific to the backup cookie, and adds a missing condition that obfuscated the configuration error and accidentally worked only on login/logout or when a backup cookie was already present.