🔖 Title
Unit Tests for AuthService
📄 Description
Write comprehensive unit tests for the AuthService covering nonce generation, signature verification, and JWT token issuance. Mock all external dependencies including Supabase client and Stellar SDK. This issue can be completed independently once issues #49 and #50 are implemented.
Related to: Meta-issue #67
✅ Tasks to complete
📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
Relevant documentation:
Dependencies:
🗒️ Additional notes
Acceptance Criteria:
- All test cases pass
- Code coverage for AuthService is at least 80%
- All external dependencies are mocked
- Tests run in isolation without database or network calls
- Edge cases are covered (null inputs, invalid formats, expired data)
🔖 Title
Unit Tests for AuthService
📄 Description
Write comprehensive unit tests for the AuthService covering nonce generation, signature verification, and JWT token issuance. Mock all external dependencies including Supabase client and Stellar SDK. This issue can be completed independently once issues #49 and #50 are implemented.
Related to: Meta-issue #67
✅ Tasks to complete
📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
Relevant documentation:
Dependencies:
🗒️ Additional notes
Acceptance Criteria: