Skip to content

Conversation

akshat-kumar-singhal
Copy link
Contributor

@akshat-kumar-singhal akshat-kumar-singhal commented Jun 26, 2025

Description:

  • Added function NewAPIKeyConfig(string) to return valid APIKeyConfig object i.e. validate the API Key value to be non empty and trim spaces. Removed redundant code in unit tests and added tests for setXApiKey function.
  • Renamed OAuthErr to AuthErr to allow re-usability

Breaking Changes (if applicable):
N/A

Additional Information:
APIKeyConfig should be converted un-exported in future releases to avoid incorrect usage

Checklist:

  • I have formatted my code using goimport and golangci-lint.
  • All new code is covered by unit tests.
  • This PR does not decrease the overall code coverage.
  • I have reviewed the code comments and documentation for clarity.

@akshat-kumar-singhal
Copy link
Contributor Author

Covered by #1971, not needed anymore

@akshat-kumar-singhal akshat-kumar-singhal deleted the api-key-auth-fixes branch July 9, 2025 07:34
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