@authhero/drizzle 1.7.0 → 1.7.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.
|
@@ -57,6 +57,13 @@
|
|
|
57
57
|
"when": 1787240700556,
|
|
58
58
|
"tag": "0007_refresh_token_session_id_backfill",
|
|
59
59
|
"breakpoints": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"idx": 8,
|
|
63
|
+
"version": "6",
|
|
64
|
+
"when": 1788700194751,
|
|
65
|
+
"tag": "0008_client_grants_unique_audience",
|
|
66
|
+
"breakpoints": true
|
|
60
67
|
}
|
|
61
68
|
]
|
|
62
69
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.7.
|
|
14
|
+
"version": "1.7.1",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"src/schema",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"drizzle-orm": "^0.45.2",
|
|
37
37
|
"nanoid": "^5.1.11",
|
|
38
|
-
"@authhero/adapter-interfaces": "4.
|
|
39
|
-
"@authhero/proxy": "0.10.
|
|
38
|
+
"@authhero/adapter-interfaces": "4.14.0",
|
|
39
|
+
"@authhero/proxy": "0.10.13"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@hono/zod-openapi": "^1.4.0",
|
|
@@ -153,5 +153,12 @@ export const clientGrants = sqliteTable(
|
|
|
153
153
|
name: "pk_client_grants",
|
|
154
154
|
}),
|
|
155
155
|
index("idx_client_grants_audience").on(table.audience),
|
|
156
|
+
// One grant per client/audience pair — kysely enforces the same
|
|
157
|
+
// constraint under the same index name.
|
|
158
|
+
uniqueIndex("uq_client_grants_tenant_client_audience").on(
|
|
159
|
+
table.tenant_id,
|
|
160
|
+
table.client_id,
|
|
161
|
+
table.audience,
|
|
162
|
+
),
|
|
156
163
|
],
|
|
157
164
|
);
|