Skip to content

optimize api key queries#215

Merged
vernu merged 1 commit intomainfrom
dev
Apr 5, 2026
Merged

optimize api key queries#215
vernu merged 1 commit intomainfrom
dev

Conversation

@vernu
Copy link
Copy Markdown
Owner

@vernu vernu commented Apr 5, 2026

  • Added a new method in AuthService to find active API keys using a masked match and fallback to regex.
  • Updated OptionalAuthGuard and AuthGuard to utilize the new method for improved API key validation.
  • Introduced an index on the apiKey field in the ApiKey schema for optimized query performance.

- Added a new method in AuthService to find active API keys using a masked match and fallback to regex.
- Updated OptionalAuthGuard and AuthGuard to utilize the new method for improved API key validation.
- Introduced an index on the apiKey field in the ApiKey schema for optimized query performance.
@vernu vernu self-assigned this Apr 5, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
textbee Ready Ready Preview, Comment Apr 5, 2026 6:37am

Request Review

if (byMasked) {
return byMasked
}
const regex = new RegExp(`^${prefix}`, 'g')
@vernu vernu merged commit 14b91f1 into main Apr 5, 2026
7 of 9 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