Skip to content

Parse key backup auth cookies without requiring spaces#140

Open
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/robust-all-public-keys-cookie
Open

Parse key backup auth cookies without requiring spaces#140
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/robust-all-public-keys-cookie

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • accept valid Cookie headers that omit the optional space after semicolons in the key-backup auth path
  • add a regression test for Supabase auth cookie parsing on GET /api/auth/key-backup

Validation

  • pnpm exec vitest run --config vitest.api-temp.config.js src/app/api/auth/key-backup/route.test.js (temporary no-plugin config used because the repo Vitest config fails to load @vitejs/plugin-react/Vite in this checkout)
  • node --check src/app/api/auth/key-backup/route.js
  • node --check src/app/api/auth/key-backup/route.test.js
  • git diff --check

Note: npx prettier --check src/app/api/auth/key-backup/route.js src/app/api/auth/key-backup/route.test.js could not run because the repo Prettier config imports missing prettier-plugin-svelte.

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