Skip to content

Conversation

@cmwhited
Copy link
Contributor

Description

Updated the auth flow in ampcc to enable authenticating using the PKCE device flow against the platform auth ui.

Auth state/flow:

  1. check if the user passed in an AMP_AUTH_TOKEN to the env
  2. check {home_dir}/.amp/cache/amp_cli_auth, which is set by the amp cli (and now this TUI as well)
  3. give users the ability to authenticate using the PKCE device flow with the platform auth ui
  4. give users the ability to logout
  5. show the users connected wallet in the toolbar. may update this to be more dynamic based on how they logged in (discord, email, etc)
CleanShot.2026-01-20.at.12.24.04.mp4

@shiyasmohd shiyasmohd self-requested a review January 21, 2026 17:08
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation looks nice, and works smooth. Some changes needed

  • Added in comments
  • Can we remove the merge commit and rebase the branch?
  • There is a lag when selecting pane using mouse click, that needs to be fixed

@shiyasmohd shiyasmohd changed the title feat(auth flow): add ability to authenticate ampcc if not authenticated feat(ampcc): add ability to authenticate if not authenticated Jan 22, 2026
@cmwhited cmwhited force-pushed the chris.whited/ampcc/feat-auth branch from d7038bc to acdae2e Compare January 22, 2026 18:53
@cmwhited cmwhited requested a review from shiyasmohd January 22, 2026 18:53
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅ Auth flow looks very nice!

  • Added one more comment
  • We can disable selecting pane using mouse click temporarily. To do this, you can change to DisableMouseCapture here

@cmwhited cmwhited force-pushed the chris.whited/ampcc/feat-auth branch from c884bf0 to 7861c45 Compare January 23, 2026 18:35
@cmwhited cmwhited merged commit de81c73 into main Jan 23, 2026
8 checks passed
@cmwhited cmwhited deleted the chris.whited/ampcc/feat-auth branch January 23, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants