@auth0/auth0-server-js 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -265,7 +265,7 @@ function getTelemetryConfig(config) {
265
265
  return {
266
266
  enabled: true,
267
267
  name: config?.name ?? "@auth0/auth0-server-js",
268
- version: config?.version ?? "1.14.0"
268
+ version: config?.version ?? "1.15.0"
269
269
  };
270
270
  }
271
271
 
package/dist/index.d.cts CHANGED
@@ -95,6 +95,28 @@ interface AuthorizationParameters {
95
95
  * this is supported for backwards compatibility.
96
96
  */
97
97
  organization?: string;
98
+ /**
99
+ * Selects the Experiment Center experiment to override for this authorization
100
+ * request, bypassing the server-side deterministic assignment. Use together
101
+ * with `variation_id` to force a specific variant.
102
+ *
103
+ * Pass per-call via `startInteractiveLogin` rather than at client construction
104
+ * time, so the override does not apply to every login.
105
+ */
106
+ experiment_id?: string;
107
+ /**
108
+ * The variation to assign the user to within the experiment identified by
109
+ * `experiment_id`. The override applies to this request only — the next login
110
+ * without these params reverts to normal server-side assignment.
111
+ * Requires `experiment_id`.
112
+ */
113
+ variation_id?: string;
114
+ /**
115
+ * Scopes the experiment override to a specific segment for this authorization
116
+ * request. Requires `experiment_id`. Only needed when the experiment uses
117
+ * segment targeting.
118
+ */
119
+ segment_id?: string;
98
120
  [key: string]: unknown;
99
121
  }
100
122
  interface TokenSet {
package/dist/index.d.ts CHANGED
@@ -95,6 +95,28 @@ interface AuthorizationParameters {
95
95
  * this is supported for backwards compatibility.
96
96
  */
97
97
  organization?: string;
98
+ /**
99
+ * Selects the Experiment Center experiment to override for this authorization
100
+ * request, bypassing the server-side deterministic assignment. Use together
101
+ * with `variation_id` to force a specific variant.
102
+ *
103
+ * Pass per-call via `startInteractiveLogin` rather than at client construction
104
+ * time, so the override does not apply to every login.
105
+ */
106
+ experiment_id?: string;
107
+ /**
108
+ * The variation to assign the user to within the experiment identified by
109
+ * `experiment_id`. The override applies to this request only — the next login
110
+ * without these params reverts to normal server-side assignment.
111
+ * Requires `experiment_id`.
112
+ */
113
+ variation_id?: string;
114
+ /**
115
+ * Scopes the experiment override to a specific segment for this authorization
116
+ * request. Requires `experiment_id`. Only needed when the experiment uses
117
+ * segment targeting.
118
+ */
119
+ segment_id?: string;
98
120
  [key: string]: unknown;
99
121
  }
100
122
  interface TokenSet {
package/dist/index.js CHANGED
@@ -213,7 +213,7 @@ function getTelemetryConfig(config) {
213
213
  return {
214
214
  enabled: true,
215
215
  name: config?.name ?? "@auth0/auth0-server-js",
216
- version: config?.version ?? "1.14.0"
216
+ version: config?.version ?? "1.15.0"
217
217
  };
218
218
  }
219
219
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auth0/auth0-server-js",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Auth0 Authentication SDK for Server-Side Applications on JavaScript runtimes",
5
5
  "author": "Auth0",
6
6
  "license": "MIT",