Actions
Task #1604
openEpic #1602: Auth API Integration
User Story #1603: Register API Integration
Integrate Username Availability API
Start date:
04/13/2026
Due date:
% Done:
0%
Estimated time:
Description
Endpoint
GET /auth/username-availability/{username}
Purpose
Check whether the entered username already exists or is available for registration.
Implementation Notes
Send request using public headers without logged-in user token
Parse:
success
exists
available
Show real-time validation message in UI
Acceptance Criteria
API is called when user enters username
App shows:
available username
already taken username
API failure state
Proper loader and debounce handling added
Error message shown on request failure
Dev Note
Existing method:
checkUsernameAvailability(String username)
URL:
'$baseUrl/auth/username-availability/$username'
Actions