You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
])("should normalize audience from apiTokenIssuer when using PrivateKeyJWT client credentials ($description)",async({ apiTokenIssuer, expectedUrl, expectedAudience })=>{
204
205
constparsedUrl=newURL(expectedUrl);
205
206
206
-
// CRITICAL: Do NOT include default ports (443 for HTTPS, 80 for HTTP) in the base URL
207
-
// because axios/Node.js URL.toString() omits them, but nock's interceptor sees them
208
-
// in the format "hostname:port/path". We need to match what the actual HTTP request uses.
207
+
// IMPORTANT: In Node.js 20 and earlier, nock's @mswjs/interceptors sees requests
208
+
// with explicit default ports (443 for HTTPS, 80 for HTTP).
209
+
// We must include the port in the nock base URL to match what the interceptor sees.
0 commit comments