Skip to content

Fix session to be updatable#226

Merged
kriszyp merged 1 commit intomainfrom
updatable-session
Mar 16, 2026
Merged

Fix session to be updatable#226
kriszyp merged 1 commit intomainfrom
updatable-session

Conversation

@kriszyp
Copy link
Copy Markdown
Member

@kriszyp kriszyp commented Mar 14, 2026

This fixes login failures.

@kriszyp kriszyp marked this pull request as ready for review March 15, 2026 22:32
@kriszyp kriszyp requested a review from a team as a code owner March 15, 2026 22:32
Comment thread security/auth.ts
}
}
request.session = session || (session = {});
request.session = session ? { ...session } : (session = {});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is session frozen or something?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it is. This is one the major changes in v5, we are returning the actual record object (which is always frozen since it lives in a cache), rather than a non-enumerable wrapper.

@kriszyp kriszyp merged commit eb64c74 into main Mar 16, 2026
24 of 25 checks passed
@kriszyp kriszyp deleted the updatable-session branch March 16, 2026 22:05
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.

3 participants