The mapbox access token is needed to download maps from mapbox. We currently hardcode an access token in our source code.
Problem
Mapbox charges based on downloads associated with access tokens. Due to our access token being available in our source code, anyone can copy and paste our access token, and Digital Democracy will be charged for those downloads.
In order to solve this, we can hide the access token and have it injected into the app in the dev and production builds.
The mapbox access token is needed to download maps from mapbox. We currently hardcode an access token in our source code.
Problem
Mapbox charges based on downloads associated with access tokens. Due to our access token being available in our source code, anyone can copy and paste our access token, and Digital Democracy will be charged for those downloads.
In order to solve this, we can hide the access token and have it injected into the app in the dev and production builds.
Proposed solution