Skip to content

Fix bug with hs account auth #1450

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

Merged
merged 1 commit into from
Apr 16, 2025
Merged

Fix bug with hs account auth #1450

merged 1 commit into from
Apr 16, 2025

Conversation

kemmerle
Copy link
Contributor

Description and Context

Joe Kurien reported a bug that hs account auth returns an error when no global config file is present (ie. running the command for the first time).

Screenshots

BEFORE:

Screenshot 2025-04-15 at 4 23 26 PM

AFTER:

Screenshot 2025-04-15 at 4 22 42 PM

TODO

  • Address feedback
  • Cut patch release to pick up the bug fix.

Who to Notify

@brandenrodgers @camden11 @joe-yeager

@@ -76,6 +76,15 @@ export async function loadConfigMiddleware(
}
};

if (
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add this to the existing SKIP_CONFIG_VALIDATION object? I don't remember exactly how that works, but it seems like the same use case as this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hs account auth is a special exception, because we want to validate the config if it exists (ie. if we're just authorizing a new account). If it doesn't exist (ie. we're running the command for the first time to create the config), we don't want to validate the config, which is what this conditional stipulates.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok, thanks. Makes sense 👍

@kemmerle kemmerle requested a review from brandenrodgers April 15, 2025 20:44
@brandenrodgers brandenrodgers merged commit d1af4cc into main Apr 16, 2025
1 check passed
@brandenrodgers brandenrodgers deleted the fix/global-config-bug branch April 16, 2025 14:25
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.

2 participants