-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default account names for hs init and hs auth #979
Conversation
packages/cli/commands/auth.js
Outdated
@@ -98,7 +104,11 @@ exports.handler = async options => { | |||
case PERSONAL_ACCESS_KEY_AUTH_METHOD.value: | |||
configData = await personalAccessKeyPrompt({ env, account }); | |||
|
|||
updatedConfig = await updateConfigWithPersonalAccessKey( | |||
token = await getAccessToken(configData.personalAccessKey, env); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a try/catch like it had in the lib?
IIRC there might be some sandboxes commands that make use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Description and Context
Now that the
localDevAuth
endpoints returnshubName
, we can use that name as a default when setting up a new account on the CLI viahs init
orhs auth
. This slightly refactors both of those commands to add support for this.cc @adamawang This also fixes the lang errors with sandbox gate syncing
Screenshots
TODO
Who to Notify
@brandenrodgers