Skip to content

feat: fix auth login validation and add auth whoami command#2

Merged
caballeto merged 3 commits intomainfrom
feat/auth-whoami
Apr 10, 2026
Merged

feat: fix auth login validation and add auth whoami command#2
caballeto merged 3 commits intomainfrom
feat/auth-whoami

Conversation

@caballeto
Copy link
Copy Markdown
Contributor

Summary

  • Fixes auth login — validates against GET /api/v1/auth/me (API-key-compatible) instead of /platform/me (JWT-only, always failed)
  • Shows org name, key name, and plan tier on successful login
  • New auth whoami command — displays full API key identity, org, plan tier, entitlements with usage, and live rate-limit quota

Dependencies

Requires mono#174 to be deployed first — the /api/v1/auth/me endpoint must exist on the API before this CLI version is released.

Test plan

  • devhelm auth login --token dh_live_... succeeds and shows org/key/plan info
  • devhelm auth whoami displays identity, plan, usage, and rate limits
  • devhelm auth whoami --output json returns full JSON response
  • devhelm auth login with invalid token fails with proper error message

Made with Cursor

- auth login now validates against /api/v1/auth/me (works with API keys)
  instead of /platform/me (JWT-only, always failed for CLI users)
- Shows org name, key name, and plan tier on successful login
- New auth whoami command displays full identity, plan, usage, and rate limits

Made-with: Cursor
Tries /api/v1/auth/me first (rich identity for API keys), falls back
to /api/v1/dashboard/overview for dev tokens and JWTs.

Made-with: Cursor
@caballeto caballeto merged commit cbbf29b into main Apr 10, 2026
3 checks passed
@caballeto caballeto deleted the feat/auth-whoami branch April 10, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant