tenneo-auth-plugin 1.0.3 → 1.0.5

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.js CHANGED
@@ -1271,7 +1271,7 @@ async function refreshAccessToken() {
1271
1271
  });
1272
1272
  throw new Error("Cannot refresh token: missing required data");
1273
1273
  }
1274
- const apiAuthBaseUrl = Config.getApiBaseUrl();
1274
+ const apiAuthBaseUrl = Config.getAuthServerUrl();
1275
1275
  const tokenUrl = `${apiAuthBaseUrl}/oauth/refresh`;
1276
1276
  const body = new URLSearchParams({
1277
1277
  grant_type: DEFAULT_REFRESH_GRANT_TYPE,
@@ -1444,6 +1444,14 @@ async function initiateAuthFlow(config) {
1444
1444
  scopes: config?.client?.scopes,
1445
1445
  hasRuntime: !!getAuthRuntime()
1446
1446
  });
1447
+ logger.info("[initiateAuthFlow] authServerUrl for OAuth", {
1448
+ authServerFromProps: authServerFromProps || null,
1449
+ authServerEffective,
1450
+ redirectUriEffective,
1451
+ tenantId: tenantIdEffective,
1452
+ tenantKey: config.tenantKey ?? null,
1453
+ clientIdEffective
1454
+ });
1447
1455
  const token = getAccessToken();
1448
1456
  if (token && !isAccessTokenExpired()) {
1449
1457
  logger.debug("Valid token already exists, skipping auth flow");