Skip to content
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

chore: split axios request options into platform #3927

Merged

Conversation

amk-dev
Copy link
Contributor

@amk-dev amk-dev commented Mar 21, 2024

Changes

This PR introduces a new property axiosPlatformConfig to auth platform definition. this allows us to pass different axios configs based on the platform.

eg: Central uses Bearer Token to authenticate with the backend, while the SH uses Cookies, the configs for these can now belong in the respective platforms.

we already do this for our Gql Client, this PR adds the same for axios configs to be used for requests sent outside of the graphql client.

@amk-dev amk-dev changed the title fix: use authorization headers from platform defs chore: split axios request options into platform Mar 22, 2024
@jamesgeorge007 jamesgeorge007 merged commit d19807b into hoppscotch:release/2024.3.0 Mar 22, 2024
1 check passed
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.

None yet

2 participants