@absolutejs/auth 0.49.2 → 0.50.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 +12 -3
- package/dist/cli/migrate.js.map +5 -5
- package/dist/htmx/index.js +5 -2
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +37 -4
- package/dist/index.js.map +9 -9
- package/dist/mfa/challenge.d.ts +1 -1
- package/dist/mfa/config.d.ts +2 -0
- package/dist/mfa/postgresMfaStore.d.ts +15 -0
- package/dist/mfa/types.d.ts +1 -0
- package/dist/providers/index.js +5 -2
- package/dist/providers/index.js.map +3 -3
- package/package.json +2 -2
package/dist/cli/migrate.js
CHANGED
|
@@ -1135,7 +1135,10 @@ var providers = defineProviders({
|
|
|
1135
1135
|
url: "https://services.leadconnectorhq.com/users/me"
|
|
1136
1136
|
},
|
|
1137
1137
|
scopeRequired: true,
|
|
1138
|
-
subject: ["
|
|
1138
|
+
subject: ["locationId"],
|
|
1139
|
+
subjectBySource: {
|
|
1140
|
+
tokenResponse: ["locationId"]
|
|
1141
|
+
},
|
|
1139
1142
|
subjectType: "string",
|
|
1140
1143
|
tokenRequest: {
|
|
1141
1144
|
authIn: "body",
|
|
@@ -2471,6 +2474,7 @@ var mfaEnrollmentsTable = pgTable8("auth_mfa_enrollments", {
|
|
|
2471
2474
|
sms_pending_code_hash: text4("sms_pending_code_hash"),
|
|
2472
2475
|
sms_phone: varchar8("sms_phone", { length: PHONE_LENGTH }),
|
|
2473
2476
|
sms_verified: boolean3("sms_verified").notNull().default(false),
|
|
2477
|
+
totp_failed_attempts: smallint("totp_failed_attempts").notNull().default(0),
|
|
2474
2478
|
totp_secret_ciphertext: text4("totp_secret_ciphertext"),
|
|
2475
2479
|
totp_verified: boolean3("totp_verified").notNull().default(false),
|
|
2476
2480
|
updated_at_ms: bigint6("updated_at_ms", { mode: "number" }).notNull(),
|
|
@@ -2986,6 +2990,10 @@ var mfaSmsColumnsMigration = {
|
|
|
2986
2990
|
].join(`
|
|
2987
2991
|
`)
|
|
2988
2992
|
};
|
|
2993
|
+
var mfaTotpLockoutMigration = {
|
|
2994
|
+
id: "0003_totp_lockout",
|
|
2995
|
+
sql: 'ALTER TABLE "auth_mfa_enrollments" ADD COLUMN IF NOT EXISTS "totp_failed_attempts" smallint NOT NULL DEFAULT 0;'
|
|
2996
|
+
};
|
|
2989
2997
|
var blockMigrations = {
|
|
2990
2998
|
adaptive: initMigration("adaptive", [knownDevicesTable, loginHistoryTable]),
|
|
2991
2999
|
apikeys: initMigration("apikeys", [
|
|
@@ -3009,7 +3017,8 @@ var blockMigrations = {
|
|
|
3009
3017
|
block: "mfa",
|
|
3010
3018
|
migrations: [
|
|
3011
3019
|
...initMigration("mfa", [mfaEnrollmentsTable]).migrations,
|
|
3012
|
-
mfaSmsColumnsMigration
|
|
3020
|
+
mfaSmsColumnsMigration,
|
|
3021
|
+
mfaTotpLockoutMigration
|
|
3013
3022
|
]
|
|
3014
3023
|
},
|
|
3015
3024
|
oidc: initMigration("oidc", [
|
|
@@ -3215,5 +3224,5 @@ var main = async () => {
|
|
|
3215
3224
|
};
|
|
3216
3225
|
await main();
|
|
3217
3226
|
|
|
3218
|
-
//# debugId=
|
|
3227
|
+
//# debugId=A0E2D0A519547C3E64756E2164756E21
|
|
3219
3228
|
//# sourceMappingURL=migrate.js.map
|