@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.
@@ -795,10 +795,10 @@ var providers = defineProviders({
795
795
  isOIDC: false,
796
796
  isRefreshable: true,
797
797
  profileRequest: {
798
- authIn: "header",
798
+ authIn: "path",
799
799
  encoding: "application/json",
800
800
  method: "GET",
801
- url: "https://api.hubapi.com/oauth/v1/access-tokens/me"
801
+ url: "https://api.hubapi.com/oauth/v1/access-tokens"
802
802
  },
803
803
  scopeRequired: true,
804
804
  subject: ["hub_id"],
@@ -2448,6 +2448,8 @@ var createOAuth2Client = async (providerName, config) => {
2448
2448
  const profileHeaders = Object.fromEntries(headerEntries.filter(([, value]) => value !== ""));
2449
2449
  if (authIn === "header") {
2450
2450
  profileHeaders.Authorization = `Bearer ${accessToken}`;
2451
+ } else if (authIn === "path") {
2452
+ endpoint.pathname = `${endpoint.pathname.replace(/\/+$/, "")}/${accessToken}`;
2451
2453
  } else {
2452
2454
  endpoint.searchParams.append("access_token", accessToken);
2453
2455
  }
@@ -2675,5 +2677,5 @@ export {
2675
2677
  escapeHtml
2676
2678
  };
2677
2679
 
2678
- //# debugId=115348D67515B56F64756E2164756E21
2680
+ //# debugId=2D3D6EB613C2066764756E2164756E21
2679
2681
  //# sourceMappingURL=index.js.map