@authhero/drizzle 0.16.0 → 0.18.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.16.0",
14
+ "version": "0.18.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.122.0"
44
+ "@authhero/adapter-interfaces": "0.123.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsc && vite build",
@@ -12,6 +12,7 @@ export const clients = sqliteTable("clients", {
12
12
  logo_uri: text("logo_uri", { length: 2083 }),
13
13
  is_first_party: integer("is_first_party").notNull().default(0),
14
14
  oidc_conformant: integer("oidc_conformant").notNull().default(1),
15
+ auth0_conformant: integer("auth0_conformant").notNull().default(1),
15
16
  callbacks: text("callbacks").notNull(),
16
17
  allowed_origins: text("allowed_origins").notNull(),
17
18
  web_origins: text("web_origins").notNull(),
@@ -38,11 +38,17 @@ export const users = sqliteTable(
38
38
  app_metadata: text("app_metadata", { length: 4096 })
39
39
  .notNull()
40
40
  .default("{}"),
41
- user_metadata: text("user_metadata", { length: 4096 })
42
- .notNull()
43
- .default("{}"),
41
+ user_metadata: text("user_metadata").notNull().default("{}"),
44
42
  profileData: text("profileData", { length: 2048 }),
45
43
  locale: text("locale", { length: 255 }),
44
+ // Additional OIDC profile claims (OIDC Core 5.1)
45
+ middle_name: text("middle_name", { length: 100 }),
46
+ preferred_username: text("preferred_username", { length: 255 }), // Shorthand name user wishes to be referred to
47
+ profile: text("profile"), // URL of profile page
48
+ website: text("website"),
49
+ gender: text("gender", { length: 50 }),
50
+ birthdate: text("birthdate", { length: 10 }), // ISO 8601:2004 YYYY-MM-DD
51
+ zoneinfo: text("zoneinfo", { length: 100 }), // e.g., "Europe/Paris"
46
52
  },
47
53
  (table) => [
48
54
  primaryKey({