Skip to content
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___
```