Skip to content

Conversation

@GauravWaghmare23
Copy link

This change updates the cookies set by the /tokenTransfer/:token endpoint to use Etherpad‑specific names:

token → epToken

prefsHttp → epPrefsHttp

Using generic cookie names like token can easily collide with existing session or auth cookies used by apps that embed Etherpad under the same parent domain (for example, sessionID, token, etc.). Renaming these cookies to Etherpad‑specific names improves interoperability and avoids unexpected overwrites while keeping the current behavior intact.

Implementation details:

The persistence format in the database (tokenTransfer:) and the response payload remain unchanged.

Cookie options (path: "/" and one‑year maxAge) are preserved so existing clients can migrate by simply reading the new cookie names.

The change is limited to the token transfer Express hook and does not modify any other cookies or session logic.

…fer/:token endpoint to epToken and epPrefsHttp.

Avoid collisions with common application cookies such as sessionID or token that are frequently used by external frameworks running on the same parent domain.

Keep the cookie semantics (path /, one-year maxAge) and payload unchanged so existing integrations can migrate by simply reading the new, Etherpad-specific cookie names.
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 this pull request may close these issues.

1 participant