-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Problem
The API client expects authentication endpoints that don't exist in the ZHTP node.
Missing Endpoints (CRITICAL)
- POST /api/v1/identity/signin - Sign in with DID and passphrase
- POST /api/v1/identity/login - Login with credentials (returns full identity)
Current Node Implementation
- POST /api/v1/identity/create - Creates new citizen identity (WORKING)
- No signin/login endpoints (MISSING)
Impact
- BLOCKING ALPHA - Users cannot sign in to existing accounts
- Mobile app signup flow works but login fails
- All user sessions break after account creation
Expected Behavior
POST /api/v1/identity/signin
- Request: { did: string, passphrase: string }
- Response: Identity object with session info
- Should authenticate and return full identity details
POST /api/v1/identity/login
- Request: { identity_id: string, passphrase: string }
- Response: LoginResponse with wallets and identity info
- Should return: identity_id, display_name, identity_type, wallets (primary, ubi, savings)
Implementation Location
ZHTP Node: zhtp/src/api/handlers/identity/mod.rs
Priority
CRITICAL - Must be implemented for alpha release