You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a part of phase 1, the following changes can be done to clean up the code so that redundant code can be replaced by single functions and to make provider addition easier:
Standardize all the provider API configs to have same functions: headers, getBaseURL and getEndpoint.
Remove all the provider specific if/else-if blocks from tryPost and tryPostProxy by making use of the above mentioned standardized functions.
Create error response builder function and reuse it for all the providers to keep control in one place instead of having it in all providers separately.
Create a VALID_PROVIDERS array which can be used in requestValidator middleware instead of import all the providers names separately
The text was updated successfully, but these errors were encountered:
As a part of phase 1, the following changes can be done to clean up the code so that redundant code can be replaced by single functions and to make provider addition easier:
The text was updated successfully, but these errors were encountered: