Skip to content

fix(auth): ignore whitespace-only environment auth tokens#293

Open
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/trim-whitespace-auth-token
Open

fix(auth): ignore whitespace-only environment auth tokens#293
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/trim-whitespace-auth-token

Conversation

@694410194
Copy link
Copy Markdown

Summary

  • treat whitespace-only CORTEX_AUTH_TOKEN and CORTEX_API_KEY values as missing in cortex whoami
  • keep cortex login status and shared auth availability checks consistent with the same normalization
  • add focused auth-token unit coverage for whitespace-only values

Related to PlatformNetwork/bounty-challenge#47006.

Verification

  • git diff --check
  • static review of the updated auth checks

Note: I could not run cargo test / cargo check in this environment because the Rust toolchain is not installed in PATH.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

1 participant