Skip to content

fix(auth): preserve padded message cookie values - #226

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/message-cookie-preserve-padding
Aug 1, 2026
Merged

fix(auth): preserve padded message cookie values#226
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/message-cookie-preserve-padding

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Preserve the complete sb-access-token cookie value in GET /api/chat/messages/[id]. Splitting on every equals sign truncated padded base64/JWT-like values and could cause authentication failures. Adds a regression test proving the full padded token reaches Supabase auth.\n\nTests: 4 passed in the focused Vitest file.

@ralyodio
ralyodio merged commit 7e8599d into profullstack:master Aug 1, 2026
8 checks passed
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.

2 participants