Skip to content

Chore/storage auth cleanup - #16

Merged
sal94 merged 2 commits into
devfrom
chore/storage-auth-cleanup
Dec 5, 2025
Merged

Chore/storage auth cleanup#16
sal94 merged 2 commits into
devfrom
chore/storage-auth-cleanup

Conversation

@sal94

@sal94 sal94 commented Dec 5, 2025

Copy link
Copy Markdown
Owner

What/Why:
- Normalize storage errors: async adapters now map missing keys to StorageNotFound and wrap other storage failures in StorageError, giving consistent error handling for read/write/copy.
- Isolate auth tokens: introduced TokenManager/TokenClaims to handle JWT issuance/decoding/active checks, keeping AuthService focused on user validation and reducing duplicated HTTPException paths.

  • Tests: make test-auto

Review Focus

  • Storage: error mapping covers read/write/copy; no behavior regressions for successful paths; missing keys surface as StorageNotFound.
  • Auth: token decoding/active checks still enforce version/revocation/expiry; signup/login flows unchanged.
  • Types/structure: new helpers keep service methods slimmer; imports/typing remain clean.

@sal94 sal94 self-assigned this Dec 5, 2025
@sal94
sal94 merged commit 68d61e7 into dev Dec 5, 2025
2 checks passed
@sal94
sal94 deleted the chore/storage-auth-cleanup branch December 5, 2025 19:15
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