Skip to content

chore(toolbox-core): Consolidate auth header creation logic #213

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 4 commits into from
May 12, 2025

Conversation

anubhav756
Copy link
Contributor

Post adding the feature of adding client-level auth headers (#178), we have the logic for creating an auth header, from the given auth token getter name, in 3 different places.

This PR unifies all of that logic into a single helper to improve maintenance, and make it easier to change the way we add suffix/prefix, and reduces WET code.

@anubhav756 anubhav756 self-assigned this May 5, 2025
@anubhav756 anubhav756 marked this pull request as ready for review May 5, 2025 08:07
@anubhav756 anubhav756 requested a review from a team as a code owner May 5, 2025 08:07
@anubhav756 anubhav756 force-pushed the anubhav-align-api branch from 8774755 to 9a5f481 Compare May 5, 2025 08:25
@anubhav756 anubhav756 force-pushed the anubhav-refactor-auth-header branch from e8812c7 to 7e5d768 Compare May 5, 2025 08:25
@anubhav756 anubhav756 force-pushed the anubhav-align-api branch from 9a5f481 to 6359868 Compare May 5, 2025 14:20
@anubhav756 anubhav756 force-pushed the anubhav-refactor-auth-header branch from 7e5d768 to 4fbe671 Compare May 5, 2025 14:20
@anubhav756 anubhav756 force-pushed the anubhav-align-api branch from 6359868 to abd8e37 Compare May 12, 2025 13:16
Base automatically changed from anubhav-align-api to main May 12, 2025 13:18
Post adding the feature of adding client-level auth headers (#178), we have the logic for creating an auth header, from the given auth token getter name, in 3 different places.

This PR unifies all of that logic into a single helper to improve maintenance, and make it easier to change the way we add suffix/prefix, and reduces WET code.
@anubhav756 anubhav756 force-pushed the anubhav-refactor-auth-header branch from 4fbe671 to e6396b6 Compare May 12, 2025 13:22
@anubhav756 anubhav756 merged commit a10964f into main May 12, 2025
19 checks passed
@anubhav756 anubhav756 deleted the anubhav-refactor-auth-header branch May 12, 2025 13:30
@release-please release-please bot mentioned this pull request May 12, 2025
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.

3 participants