@authhero/drizzle 0.12.0 → 0.13.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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.12.0",
14
+ "version": "0.13.0",
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.118.0"
44
+ "@authhero/adapter-interfaces": "0.119.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
- login_completed: integer("login_completed").default(0),
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({