Skip to content

Feature/2 feature apikeys - #9

Merged
liamburja merged 6 commits into
mainfrom
feature/2-feature-apikeys
Aug 19, 2026
Merged

Feature/2 feature apikeys#9
liamburja merged 6 commits into
mainfrom
feature/2-feature-apikeys

Conversation

@foxkdev

@foxkdev foxkdev commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces a comprehensive refactor and extension of the API key management system, along with improvements to CI workflows and testing infrastructure. The main changes are the extraction of API key logic into a dedicated service and repository, the addition of unit tests for both API key and profile services, and updates to the database schema and CI configuration.

API Key Management Refactor and Enhancements:

  • Introduced a new ApiKeysService and ApiKeyRepository to encapsulate all API key operations, including creation, validation, revocation, and regeneration, moving this logic out of the ProfileService for better separation of concerns. The ApiKeyView type and database schema were extended to support expiresAt and revokedAt fields. [1] [2] [3] [4] [5]
  • Removed all API key related methods from ProfileService, which now focuses solely on user profile and password management. [1] [2]

Testing Improvements:

  • Added comprehensive unit tests for ApiKeysService and ProfileService using Vitest, ensuring robust coverage for API key and profile operations. [1] [2]

CI and Build System Updates:

  • Refactored the GitHub Actions CI workflow to separate linting and unit tests into distinct jobs, and switched the base branch for PRs from develop to main. [1] [2]
  • Added vitest and related coverage tools to package.json scripts and dev dependencies for running and watching tests. [1] [2] [3]

These changes improve maintainability, testability, and scalability of the authentication module, especially around API key lifecycle management.

@foxkdev foxkdev linked an issue Aug 18, 2026 that may be closed by this pull request
@liamburja
liamburja merged commit 0c90f85 into main Aug 19, 2026
0 of 4 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.

Feature: ApiKeys

2 participants