@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.
- package/dist/cli/migrate.js +3 -3
- package/dist/cli/migrate.js.map +2 -2
- package/dist/htmx/index.js +5 -3
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +3 -3
- package/dist/providers/index.js +5 -3
- package/dist/providers/index.js.map +3 -3
- package/package.json +2 -2
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: "
|
|
933
|
+
authIn: "path",
|
|
934
934
|
encoding: "application/json",
|
|
935
935
|
method: "GET",
|
|
936
|
-
url: "https://api.hubapi.com/oauth/v1/access-tokens
|
|
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
|
}
|
|
@@ -27625,5 +27627,5 @@ export {
|
|
|
27625
27627
|
AuthIdentityConflictError
|
|
27626
27628
|
};
|
|
27627
27629
|
|
|
27628
|
-
//# debugId=
|
|
27630
|
+
//# debugId=5F55063E6B7F41EC64756E2164756E21
|
|
27629
27631
|
//# sourceMappingURL=index.js.map
|