@absolutejs/auth 0.48.6 → 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
  }
@@ -2608,5 +2610,5 @@ export {
2608
2610
  decodeJWT
2609
2611
  };
2610
2612
 
2611
- //# debugId=03B0ED8A60D9E20164756E2164756E21
2613
+ //# debugId=303770E52ED6DEBF64756E2164756E21
2612
2614
  //# sourceMappingURL=index.js.map