Skip to content

Simplify auth token retrieval in getAuthTokens#7185

Merged
kkartunov merged 1 commit intomasterfrom
kkartunov-patch-2
Feb 26, 2026
Merged

Simplify auth token retrieval in getAuthTokens#7185
kkartunov merged 1 commit intomasterfrom
kkartunov-patch-2

Conversation

@kkartunov
Copy link
Collaborator

Removed support for historical cookie names for auth tokens.

Removed support for historical cookie names for auth tokens.
@kkartunov kkartunov requested a review from jmgasper as a code owner February 26, 2026 12:04
@kkartunov kkartunov merged commit 031eb06 into master Feb 26, 2026
5 of 6 checks passed
const cookies = req.cookies || {};
// Support both historical cookie names used across environments.
const authToken = cookies.tcjwt || cookies.tcJwt;
let tokenV2 = cookies.tcjwt;

Choose a reason for hiding this comment

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

[❗❗ correctness]
The removal of support for the historical cookie name tcJwt is fine if you are certain that all environments and clients have transitioned to using tcjwt. Ensure that there are no legacy systems relying on the old cookie name, as this could lead to authentication issues.

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