@absolutejs/auth 0.48.6 → 0.49.0
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 +30 -4
- package/dist/cli/migrate.js.map +5 -5
- package/dist/htmx/index.js +5 -3
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1638 -1372
- package/dist/index.js.map +14 -13
- package/dist/mfa/challenge.d.ts +8 -3
- package/dist/mfa/config.d.ts +14 -0
- package/dist/mfa/postgresMfaStore.d.ts +75 -0
- package/dist/mfa/routes.d.ts +62 -1
- package/dist/mfa/sms.d.ts +105 -0
- package/dist/mfa/types.d.ts +6 -1
- package/dist/providers/index.js +5 -3
- package/dist/providers/index.js.map +3 -3
- package/package.json +2 -2
package/dist/htmx/index.js
CHANGED
|
@@ -795,10 +795,10 @@ var providers = defineProviders({
|
|
|
795
795
|
isOIDC: false,
|
|
796
796
|
isRefreshable: true,
|
|
797
797
|
profileRequest: {
|
|
798
|
-
authIn: "
|
|
798
|
+
authIn: "path",
|
|
799
799
|
encoding: "application/json",
|
|
800
800
|
method: "GET",
|
|
801
|
-
url: "https://api.hubapi.com/oauth/v1/access-tokens
|
|
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=
|
|
2680
|
+
//# debugId=2D3D6EB613C2066764756E2164756E21
|
|
2679
2681
|
//# sourceMappingURL=index.js.map
|