Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Refactor login/logout to share session clearing code #1489

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

patch0
Copy link
Contributor

@patch0 patch0 commented Jun 6, 2023

I noticed that when logging in with another user on top of an existing session that the old session was still present on the "account select" screen. This change makes sure the session is cleared before going through the login flow, the same way as it is cleared in the logout flow.

Also I've added an option to the gulpfile to allow large HTTP headers to be parsed, as I was seeing HPE_HEADER_OVERFLOW errors in the HAPI debug logs. I don't think this will happen in prod as not as many cookies are sent, as more than one domain is used for profile, zen, cd frontend etc.

I noticed that when logging in with another user on top of an existing
session that the old session was still present on the "account select"
screen.  This change makes sure the session is cleared before going
through the login flow, the same way as it is cleared in the logout
flow.

Also I've added an option to the gulpfile to allow large HTTP headers to
be parsed, as I was seeing HPE_HEADER_OVERFLOW errors in the HAPI debug
logs.  I don't think this will happen in prod as not as many cookies are
sent, as more than one domain is used for profile, zen, cd frontend etc.
Copy link
Contributor

@peconia peconia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants