@authhero/kysely-adapter 0.7.8 → 0.7.10
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/kysely-adapter.mjs
CHANGED
|
@@ -3199,6 +3199,9 @@ const pr = i.enum([
|
|
|
3199
3199
|
login_id: i.string().openapi({
|
|
3200
3200
|
description: "The id of the login session that the code is connected to"
|
|
3201
3201
|
}),
|
|
3202
|
+
connection_id: i.string().optional().openapi({
|
|
3203
|
+
description: "The connection that the code is connected to"
|
|
3204
|
+
}),
|
|
3202
3205
|
code_type: pr,
|
|
3203
3206
|
expires_at: i.string(),
|
|
3204
3207
|
used_at: i.string().optional()
|
|
@@ -4090,7 +4093,7 @@ function ya(n) {
|
|
|
4090
4093
|
}
|
|
4091
4094
|
function va(n) {
|
|
4092
4095
|
return async (e, t, s) => {
|
|
4093
|
-
const r = await n.selectFrom("codes").where("codes.
|
|
4096
|
+
const r = await n.selectFrom("codes").where("codes.code_id", "=", t).where("codes.code_type", "=", s).where("codes.expires_at", ">", (/* @__PURE__ */ new Date()).toISOString()).selectAll().executeTakeFirst();
|
|
4094
4097
|
return r ? R(r) : null;
|
|
4095
4098
|
};
|
|
4096
4099
|
}
|
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.7.
|
|
14
|
+
"version": "0.7.10",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"kysely-bun-sqlite": "^0.3.2",
|
|
42
42
|
"kysely-planetscale": "^1.4.0",
|
|
43
43
|
"nanoid": "^5.0.7",
|
|
44
|
-
"@authhero/adapter-interfaces": "^0.11.
|
|
44
|
+
"@authhero/adapter-interfaces": "^0.11.6"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
|