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

fix(rn): Remove unsafe authToken option from the Expo setup page #9244

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions includes/react-native-expo-plugin-code-snippet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"warning": "DO NOT COMMIT YOUR AUTH TOKEN",
"authToken": "___ORG_AUTH_TOKEN___",
"note": "Use SENTRY_AUTH_TOKEN env to authenticate with Sentry.",
"project": "___PROJECT_SLUG___",
"organization": "___ORG_SLUG___"
}
Expand All @@ -27,8 +26,7 @@ const config = {

module.exports = withSentry(config, {
url: "https://sentry.io/",
// DO NOT COMMIT YOUR AUTH TOKEN
authToken: "___ORG_AUTH_TOKEN___",
// Use SENTRY_AUTH_TOKEN env to authenticate with Sentry.
project: "___PROJECT_SLUG___s",
organization: "___ORG_SLUG___",
});
Expand All @@ -45,9 +43,15 @@ const config: ExpoConfig = {

export default withSentry(config, {
url: "https://sentry.io/",
// DO NOT COMMIT YOUR AUTH TOKEN
authToken: "___ORG_AUTH_TOKEN___",
// Use SENTRY_AUTH_TOKEN env to authenticate with Sentry.
project: "___PROJECT_SLUG___",
organization: "___ORG_SLUG___",
});
```

Add auth token to your environment:

```bash
# DO NOT COMMIT YOUR AUTH TOKEN
export SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
```
Loading