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

Update Mapbox token to be injected at build time #1147

Closed
ErikSin opened this issue Mar 4, 2024 · 1 comment
Closed

Update Mapbox token to be injected at build time #1147

ErikSin opened this issue Mar 4, 2024 · 1 comment
Assignees

Comments

@ErikSin
Copy link
Contributor

ErikSin commented Mar 4, 2024

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

@ErikSin ErikSin self-assigned this Mar 4, 2024
@achou11
Copy link
Member

achou11 commented Mar 13, 2024

Closed via #1150

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

No branches or pull requests

2 participants