Skip to content

[TESTING] Write API integration tests for auth endpoints #338

@dev-fatima-24

Description

@dev-fatima-24

Priority: critical

Description

The SEP-10 challenge and verify endpoints need integration tests that exercise the full request/response cycle with a mocked Stellar SDK.

Acceptance Criteria

  • Test: POST /v1/auth/sep10 with valid public key returns a challenge transaction
  • Test: POST /v1/auth/sep10 with missing public key returns 400
  • Test: POST /v1/auth/verify with valid signed tx returns a JWT
  • Test: POST /v1/auth/verify with invalid signature returns 401
  • Test: POST /v1/auth/verify with expired challenge returns 401

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions