fix(auth): validate status for external users - #531
Open
ddharman-quora wants to merge 2 commits into
Open
Conversation
Use the ungated current balance endpoint for auth status and doctor while leaving identity-based whoami behavior unchanged. BREAKING CHANGE: auth status --json no longer returns identity details.
BREAKING CHANGE: poe-code whoami and poe-code auth whoami are no longer available.
ddharman-quora
marked this pull request as ready for review
August 18, 2026 17:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
poe-code auth statusthroughGET /usage/current_balanceinstead of the employee-gated/v1/whoamiendpoint{ "loggedIn": true }from successfulauth status --jsoncheckspoe-code whoamiandpoe-code auth whoamiCLI commandsdoctorto use the same external-user-compatible authentication checkWhy
External users can complete login and receive a valid API key, but
auth statuscurrently reports HTTP 401 because/v1/whoamiis restricted to employees.Compatibility
This is a breaking CLI change:
auth status --jsonno longer includesidentity, and the twowhoamicommands are removed. The underlying SDK identity helper remains available.Verification
npm run screenshot-poe-code -- auth --helpNo release occurs unless this PR is merged to
main.