@authhero/drizzle 0.12.0 → 0.13.1
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/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.13.1",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"src/schema",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"drizzle-orm": "^0.44.2",
|
|
44
|
-
"@authhero/adapter-interfaces": "0.
|
|
44
|
+
"@authhero/adapter-interfaces": "0.120.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc && vite build",
|
|
@@ -97,7 +97,10 @@ export const loginSessions = sqliteTable(
|
|
|
97
97
|
ip: text("ip", { length: 39 }),
|
|
98
98
|
useragent: text("useragent"),
|
|
99
99
|
auth0Client: text("auth0Client", { length: 255 }),
|
|
100
|
-
|
|
100
|
+
state: text("state", { length: 50 }).notNull().default("pending"),
|
|
101
|
+
state_data: text("state_data"), // JSON: { hookId?, continuationScope?, continuationReturnUrl? }
|
|
102
|
+
failure_reason: text("failure_reason"),
|
|
103
|
+
user_id: text("user_id", { length: 255 }),
|
|
101
104
|
},
|
|
102
105
|
(table) => [
|
|
103
106
|
primaryKey({
|
|
@@ -105,6 +108,9 @@ export const loginSessions = sqliteTable(
|
|
|
105
108
|
name: "login_sessions_pk",
|
|
106
109
|
}),
|
|
107
110
|
index("login_sessions_id_index").on(table.id),
|
|
111
|
+
index("login_sessions_state_idx").on(table.state),
|
|
112
|
+
index("login_sessions_state_updated_idx").on(table.state, table.updated_at),
|
|
113
|
+
index("login_sessions_tenant_user_idx").on(table.tenant_id, table.user_id),
|
|
108
114
|
],
|
|
109
115
|
);
|
|
110
116
|
|