Add authentication validation helper
Extracts duplicated auth validation logic into reusable utility:
- requireAuth(): Validates client is authenticated and has active session
- Throws clear error messages if not authenticated
- Returns session with DID and handle
This helper will be used across all API operations that require
authentication, ensuring consistent error messages and reducing
code duplication.
Includes test coverage (3 tests passing)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>