Function: createAxiosResponseInterceptor()
createAxiosResponseInterceptor(
polarisSDK
):CreateAxiosResponseInterceptorResponse
Creates an Axios interceptor for decryption. This function is designed to be used with Axios interceptors to decrypt response data after receiving. It decrypts the response body if it exists.
Parameters
polarisSDK
CreateAxiosResponseInterceptorParams
The Polaris SDK instance.
Returns
CreateAxiosResponseInterceptorResponse
- A function that takes an Axios response and returns a promise that resolves to the modified response.