Skip to content

Hint profile added in the auth status#56

Open
BlueLabelscotch wants to merge 1 commit into
mainfrom
fix/profile#55
Open

Hint profile added in the auth status#56
BlueLabelscotch wants to merge 1 commit into
mainfrom
fix/profile#55

Conversation

@BlueLabelscotch

Copy link
Copy Markdown
Collaborator

Summary

Closes #55harness auth status and harness auth login now append an actionable hint when a token is rejected (401), instead of leaving the user with a dead-end error.

Changes

  • modules/core/auth/status.go: added maybeAppendProfileHint, appended to all checkErrors failure branches (Profile, API, User, Account, Org, Project) so any 401-flavored check failure gets the hint.
  • modules/core/auth/login.go: appended the same hint to the 401 branch of validateToken.

@mohitsuman mohitsuman requested a review from sawka-harness July 14, 2026 12:11
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.

harness auth status 401 error should reference harness auth profiles

1 participant