@absolutejs/auth 0.48.5 → 0.48.7

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
@@ -930,10 +930,10 @@ var providers = defineProviders({
930
930
  isOIDC: false,
931
931
  isRefreshable: true,
932
932
  profileRequest: {
933
- authIn: "header",
933
+ authIn: "path",
934
934
  encoding: "application/json",
935
935
  method: "GET",
936
- url: "https://api.hubapi.com/oauth/v1/access-tokens/me"
936
+ url: "https://api.hubapi.com/oauth/v1/access-tokens"
937
937
  },
938
938
  scopeRequired: true,
939
939
  subject: ["hub_id"],
@@ -2583,6 +2583,8 @@ var createOAuth2Client = async (providerName, config) => {
2583
2583
  const profileHeaders = Object.fromEntries(headerEntries.filter(([, value]) => value !== ""));
2584
2584
  if (authIn === "header") {
2585
2585
  profileHeaders.Authorization = `Bearer ${accessToken}`;
2586
+ } else if (authIn === "path") {
2587
+ endpoint.pathname = `${endpoint.pathname.replace(/\/+$/, "")}/${accessToken}`;
2586
2588
  } else {
2587
2589
  endpoint.searchParams.append("access_token", accessToken);
2588
2590
  }
@@ -22455,7 +22457,8 @@ var startImpersonation = async ({
22455
22457
  readOnly: impersonator.readOnly,
22456
22458
  reason: impersonator.reason,
22457
22459
  returnToSessionId: callerSessionId,
22458
- startedAt: Date.now()
22460
+ startedAt: Date.now(),
22461
+ suppressSideEffects: impersonator.suppressSideEffects
22459
22462
  };
22460
22463
  const sessionId = await promoteToSession({
22461
22464
  authSessionStore,
@@ -27624,5 +27627,5 @@ export {
27624
27627
  AuthIdentityConflictError
27625
27628
  };
27626
27629
 
27627
- //# debugId=4AE8923415556A3664756E2164756E21
27630
+ //# debugId=5F55063E6B7F41EC64756E2164756E21
27628
27631
  //# sourceMappingURL=index.js.map