Skip to content

Normalize key backup bearer tokens#154

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

Normalize key backup bearer tokens#154
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/key-backup-bearer-normalization

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • normalize auth/key-backup Bearer headers with case-insensitive scheme handling and whitespace trimming
  • ignore empty Bearer headers so cookie auth can still be used
  • add focused key backup auth tests for flexible Bearer parsing and empty-header fallback

Tests

  • vitest run src/app/api/auth/key-backup/route.test.js
  • node --check src/app/api/auth/key-backup/route.js
  • node --check src/app/api/auth/key-backup/route.test.js
  • git diff --check

@ralyodio
ralyodio merged commit c1ffc92 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