-
Notifications
You must be signed in to change notification settings - Fork 83
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
"Sentry authToken
found in app.json." console warning even when using env variables in app config
#334
Comments
Same issue on
Event though I ran |
It's telling you to omit the following from your app.json config, and instead just have it as an environment variable.
This is to avoid that authToken (in your app.json) being leaked in application update manifests. Read more here: https://docs.expo.dev/guides/using-sentry/#app-configuration |
Doh I misread the instructions, thanks! So now the hook in my
and I uploaded the auth token in my Expo dashboard's secret section: Am I good or Is there more I need to do? |
@TowhidKashem that's what I did and it seems to be fine 👍 |
I can confirm these changes are enough to get rid of the original warning and still have Sentry work with source maps, closing. |
To be honest, the warning message is very confusing. It needs to state that you don't need to setup the authToken in the app.json at all, instead, set SENTRY_AUTH_TOKEN as Expo Secret is sufficient enough. |
Thanks - removing I lost ages on this, the warning/Docs are really really vague. Much appreciated! |
How to generate the eas build after using .env. I tried generating one but my apis werent working after using .env |
Hi |
For local builds set the token manually |
Hi, I build android locally and ios online. Will try to test your solution. thanks! |
Summary
I'm using env variables as recommended to store the sensitive sentry info in app.config.js:
But I'm still getting each time I start the app using
npx expo start --dev-client
:Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
48
Environment
Reproducible demo or steps to reproduce from a blank project
sentry-expo
"npx expo start --dev-client
The text was updated successfully, but these errors were encountered: