Iterable / iterable-web-sdk

Iterable SDK for interacting with the Iterable API to implement inside JavaScript and Node projects
https://iterable.com
MIT License
9 stars 9 forks source link

[MOB-8425]: strengthen network interceptors #376

Closed mprew97 closed 4 months ago

mprew97 commented 4 months ago

JIRA Ticket(s) if any

Description

Our network interceptors are prone to misses whenever new routes are added.

This PR makes it so that all places in the SDK calling our API are pulling from a consistent route object and that same route object is being used by the interceptors. This way, any new routes added to there will have to be made sure to work with our interceptors.

Test Steps

Start sample app Test all API calls and make sure userID and email are properly attached.