Skip to content

Commit 93667e8

Browse files
authored
feat: Clarify that org auth tokens should be used for bundler plugins (#11259)
1 parent 0503b1a commit 93667e8

File tree

8 files changed

+32
-8
lines changed

8 files changed

+32
-8
lines changed

docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ If you are on an older version and you want to upload source maps we recommend u
5353

5454
</Note>
5555

56-
To upload source maps you have to configure an auth token.
56+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
57+
58+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
59+
5760
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
5861
We recommend you add the auth token to your CI/CD environment as an environment variable.
5962

docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ If you are on an older version and you want to upload source maps we recommend u
8181

8282
</Note>
8383

84-
To upload source maps you have to configure an auth token.
84+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
85+
86+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
87+
8588
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
8689
We recommend you add the auth token to your CI/CD environment as an environment variable.
8790

docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ pnpm add @sentry/esbuild-plugin --save-dev
3838

3939
### Configure
4040

41-
To upload source maps you have to configure an auth token.
41+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
42+
43+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
44+
4245
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
4346
We recommend you add the auth token to your CI/CD environment as an environment variable.
4447

docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ pnpm add @sentry/rollup-plugin --save-dev
3838

3939
### Configuration
4040

41-
To upload source maps you have to configure an auth token.
41+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
42+
43+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
44+
4245
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
4346
We recommend you add the auth token to your CI/CD environment as an environment variable.
4447

docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ pnpm add @sentry/vite-plugin --save-dev
3636

3737
### Configuration
3838

39-
To upload source maps you have to configure an auth token.
39+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
40+
41+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
42+
4043
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
4144
We recommend you add the auth token to your CI/CD environment as an environment variable.
4245

docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ pnpm add @sentry/webpack-plugin --save-dev
3737

3838
### Configuration
3939

40-
To upload source maps you have to configure an auth token.
40+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
41+
42+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
43+
4144
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project.
4245
We recommend you add the auth token to your CI/CD environment as an environment variable.
4346

platform-includes/sourcemaps/overview/javascript.svelte.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ yarn add @sentry/vite-plugin --dev
4949
pnpm add @sentry/vite-plugin --save-dev
5050
```
5151

52-
To upload source maps you have to configure an auth token.
52+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
53+
54+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
55+
5356
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with a `.env.sentry-build-plugin` file in the working directory when building your project.
5457
You likely want to add the auth token as an environment variable to your CI/CD environment.
5558

platform-includes/sourcemaps/overview/javascript.vue.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ pnpm add @sentry/vite-plugin --save-dev
3939

4040
Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
4141

42-
To upload source maps you have to configure an auth token.
42+
To upload source maps you have to configure an [Organization Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
43+
44+
Alternatively, you can also use a [User Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/account/api/auth-tokens/), with the "Project: Read & Write" and "Release: Admin" permissions.
45+
4346
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with a `.env.sentry-build-plugin` file in the working directory when building your project.
4447
You likely want to add the auth token as an environment variable to your CI/CD environment.
4548

0 commit comments

Comments
 (0)