Skip to content

feat: verify account via lookup API during session authorization#49

Merged
broody merged 2 commits intomainfrom
feat/session-account-lookup
Feb 24, 2026
Merged

feat: verify account via lookup API during session authorization#49
broody merged 2 commits intomainfrom
feat/session-account-lookup

Conversation

@broody
Copy link
Collaborator

@broody broody commented Feb 24, 2026

Summary

  • When --account is provided during session auth, look up the username via the Cartridge lookup API to verify it resolves to a controller address
  • Display the username and address in the output message before proceeding
  • Error if the account is not found on Cartridge
  • Pass account as a URL parameter in the authorization URL
  • Fix all clippy warnings in marketplace commands

Test plan

  • Run controller session auth --account <valid-username> --preset <preset> and verify it shows "Authorizing session for account ()"
  • Run controller session auth --account <invalid-username> --preset <preset> and verify it errors with "Account not found"
  • Run controller session auth --preset <preset> (no --account) and verify existing behavior is unchanged

🤖 Generated with Claude Code

broody and others added 2 commits February 24, 2026 11:05
When --account is provided, look up the username via the Cartridge API
to verify it resolves to a controller address before proceeding. Display
the username and address in the output and pass account as a URL param.
Also fix all clippy warnings in marketplace commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@broody broody merged commit 35597a3 into main Feb 24, 2026
3 checks passed
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