Skip to content

Feat 98#133

Open
AfroTechBoss wants to merge 2 commits intoSuncrest-Labs:mainfrom
AfroTechBoss:feat-98
Open

Feat 98#133
AfroTechBoss wants to merge 2 commits intoSuncrest-Labs:mainfrom
AfroTechBoss:feat-98

Conversation

@AfroTechBoss
Copy link
Copy Markdown

closes #98

…for protected routes

- Updated .env.example to include JWT issuer and secrets.
- Enhanced Config struct to manage authentication settings.
- Modified SettlementHandler and VaultHandler to support authentication middleware.
- Implemented ownership checks for protected routes in handlers.
- Added tests for protected route access control.

Closes#98
… settlement and vault handlers

- Introduced `authenticatedUserPresent` method to simplify ownership checks.
- Replaced direct calls to `AuthenticatedUserID` with `resolveInitiatingUserID` and `resolveCreateUserID` for better error handling.
- Updated error responses for user ID validation in both handlers.
- Enhanced code readability and maintainability by consolidating user ID resolution logic.
@AfroTechBoss AfroTechBoss requested a review from 0xDeon as a code owner March 27, 2026 20:23
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@AfroTechBoss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

feat(backend): implement JWT authentication and wallet-based session management

1 participant