How to hide auth token and other sensitive data?

Using Sentry with Expo document instructs us to put authToken into app.json file which is added to source control. I want to hide the auth token and other sensitive data and I don’t want to add them to source control.

The CLI configuration document suggests that I could add auth token as an environment variable or use a .sentryclirc file which are good solutions to hiding it.

My problem is that it’s not clear to me how to put those two things to work together. Do I create an environment variable then run CLI? or will expo read environment variable by default? What exactly do I have to do after adding auth token as an environment variable?

1 Like