Clarify on configuring id_tokens 'aud' for oidc token exchange (#1877)
### Description Added clarification about configuring 'aud' for id_tokens in GitLab pipeline.
Di Hei committed
Feb 10, 2026 at 10:56 UTC
9dcd1b750119e1d33ad4cc516b7135dba292d7cd
1 file changed
+6
content/packages-and-modules/securing-your-code/trusted-publishers.mdx
+6
@@ -139,6 +139,12 @@ publish:
139
140
The `id_tokens` configuration tells GitLab to generate an OIDC token for npm. Learn more in [GitLab's OIDC documentation](https://docs.gitlab.com/ee/ci/cloud_services/).
141
142
+<Note>
143
+
144
+**Note:** Don't forget to configure id_tokens 'aud' to `"npm:registry.npmjs.org"` in your GitLab pipeline.
145
+
146
+</Note>
147
+
148
### Managing trusted publisher configurations
149
150
You can modify or remove your trusted publisher configuration at any time through your package settings on [npmjs.com](https://npmjs.com) → Packages → YOUR_PACKAGE → Settings → Trusted publishing. Each package can only have one trusted publisher connection at a time, but this connection can be edited or deleted as needed. To change providers (for example, switching from GitHub Actions to GitLab CI/CD), simply edit your existing configuration and select the new provider. The change takes effect immediately for future publishes. To remove trusted publishing entirely and return to token-based authentication, delete the trusted publisher configuration from your package settings.