Skip to content

fix: Add cookie chunking for iron-session - #944

Closed
ThomasGross wants to merge 1 commit into
developfrom
unilogin-cookie-chunking
Closed

fix: Add cookie chunking for iron-session#944
ThomasGross wants to merge 1 commit into
developfrom
unilogin-cookie-chunking

Conversation

@ThomasGross

@ThomasGross ThomasGross commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Link to issue

no issue

Description

The Unilogin session (access + refresh + id token) overflows the 4096 byte browser cookie limit, breaking sign-in. Wrap iron-session's exported sealData/unsealData and split the seal across go-session.0, go-session.1, ... when it would otherwise exceed the limit. Mirrors the approach in the unmerged upstream PR vvo/iron-session#937 so we can drop the wrapper once that lands.

The Unilogin session (access + refresh + id token) overflows the 4096
byte browser cookie limit, breaking sign-in. Wrap iron-session's
exported sealData/unsealData and split the seal across go-session.0,
go-session.1, ... when it would otherwise exceed the limit. Mirrors the
approach in the unmerged upstream PR vvo/iron-session#937 so we can drop
the wrapper once that lands.
@kasperg

kasperg commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Closing in favour of #943

@kasperg kasperg closed this Jun 10, 2026
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