refactor: use @heroku/sdk for auth commands#3815
Open
erika-wallace wants to merge 8 commits into
Open
Conversation
erika-wallace
temporarily deployed
to
AcceptanceTests
July 16, 2026 21:08 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 16, 2026 21:08 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 16, 2026 21:08 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 16, 2026 21:08 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 14:44 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 14:44 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 14:44 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 14:44 — with
GitHub Actions
Inactive
erika-wallace
force-pushed
the
ew/sdk-update-auth
branch
from
July 17, 2026 15:22
3888475 to
fc70f63
Compare
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 15:22 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 15:22 — with
GitHub Actions
Inactive
erika-wallace
temporarily deployed
to
AcceptanceTests
July 17, 2026 15:22 — with
GitHub Actions
Inactive
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
Migrates the following
authcommands to@heroku/sdk:auth/whoamiauth/tokenauth/2faauth/loginDetails
GET /accountcall toplatform.account.info()GET /oauth/authorizationscall toplatform.oauthAuthorization.list()GET /accountcall toplatform.account.info()GET /accountcall toplatform.account.info()(login flow itself remains withAPIClient.login())Not migrated
APIClient.logout()and local credential management)Testing
Notes:
The SDK uses heroku-fetch to make API calls, which looks for a netrc file. Therefore, we must login with
HEROKU_NETRC_WRITE=true.Steps:
npm i && npm run build./bin/run logoutHEROKU_NETRC_WRITE=true ./bin/run login— Outputs "logged in as email"./bin/run whoami— Outputs "email"./bin/run auth:token— Outputs "token"./bin/run auth:2fa— Outputs "two-factor authentication is enabled/not enabled"Cleanup:
./bin/run logoutRelated Issues
GUS work item: W-23373474