Skip to content

Normalize profile update bearer tokens#151

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/profile-update-bearer-normalization
Jul 13, 2026
Merged

Normalize profile update bearer tokens#151
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/profile-update-bearer-normalization

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • normalize profile update Bearer headers with case-insensitive scheme handling and whitespace trimming
  • reject empty Bearer headers before creating a Supabase client
  • add focused profile update auth tests for normalized and empty authorization headers

Tests

  • vitest run src/app/api/profile/update/route.test.js
  • node --check src/app/api/profile/update/route.js
  • node --check src/app/api/profile/update/route.test.js
  • git diff --check

@ralyodio
ralyodio merged commit 470aa25 into profullstack:master Jul 13, 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