diff --git a/packages/adapter-interfaces/package.json b/packages/adapter-interfaces/package.json index 59e87db..06fd46d 100644 --- a/packages/adapter-interfaces/package.json +++ b/packages/adapter-interfaces/package.json @@ -39,5 +39,8 @@ }, "peerDependencies": { "@hono/zod-openapi": "^0.16.4" + }, + "dependencies": { + "nanoid": "^5.0.8" } } diff --git a/packages/authhero/package.json b/packages/authhero/package.json index 0ed9ac7..2624181 100644 --- a/packages/authhero/package.json +++ b/packages/authhero/package.json @@ -27,6 +27,7 @@ "better-sqlite3": "^11.5.0", "dts-bundle-generator": "^9.5.1", "hono": "^4.6.11", + "kysely": "^0.27.4", "typescript": "^5.6.3", "vite": "^5.4.11", "vite-plugin-dts": "^4.3.0", @@ -37,6 +38,7 @@ "@peculiar/x509": "^1.12.3", "bcrypt": "^5.1.1", "bcryptjs": "^2.4.3", + "nanoid": "^5.0.8", "oslo": "^1.2.1", "zxcvbn": "^4.4.2" }, diff --git a/packages/authhero/src/helpers/client.ts b/packages/authhero/src/helpers/client.ts index d6e27d2..ee623ca 100644 --- a/packages/authhero/src/helpers/client.ts +++ b/packages/authhero/src/helpers/client.ts @@ -1,5 +1,5 @@ import { HTTPException } from "hono/http-exception"; -import { Client, connectionSchema } from "authhero"; +import { Client, connectionSchema } from "@authhero/adapter-interfaces"; import { Bindings } from "../types"; export async function getClient( diff --git a/packages/authhero/src/types/auth0/Totals.ts b/packages/authhero/src/types/auth0/Totals.ts index d66341b..cffda36 100644 --- a/packages/authhero/src/types/auth0/Totals.ts +++ b/packages/authhero/src/types/auth0/Totals.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from "@hono/zod-openapi"; export const totalsSchema = z.object({ start: z.number(), diff --git a/packages/authhero/src/types/auth0/UserResponse.ts b/packages/authhero/src/types/auth0/UserResponse.ts index dab4611..82f3f51 100644 --- a/packages/authhero/src/types/auth0/UserResponse.ts +++ b/packages/authhero/src/types/auth0/UserResponse.ts @@ -1,5 +1,5 @@ import { BaseUser, baseUserSchema } from "@authhero/adapter-interfaces"; -import { z } from "zod"; +import { z } from "@hono/zod-openapi"; export interface PostUsersBody extends BaseUser { password?: string; diff --git a/packages/authhero/test/routes/auth-api/dbconnections.spec.ts b/packages/authhero/test/routes/auth-api/dbconnections.spec.ts index b528baa..858d6b3 100644 --- a/packages/authhero/test/routes/auth-api/dbconnections.spec.ts +++ b/packages/authhero/test/routes/auth-api/dbconnections.spec.ts @@ -37,7 +37,7 @@ describe("dbconnections", () => { { json: { email: "email-user@example.com", - password: "Password1!", + password: "fG%D0MV4bjb%xI", connection: "Username-Password-Authentication", client_id: "clientId", }, @@ -160,7 +160,7 @@ describe("dbconnections", () => { expect(response.status).toBe(400); const message = await response.text(); - expect(message).toBe("Invalid sign up"); + expect(message).toBe("Password does not meet the requirements"); }); }); @@ -199,7 +199,7 @@ describe("dbconnections", () => { { json: { email: "email-user@example.com", - password: "Password1!", + password: "fG%D0MV4bjb%xI", connection: "Username-Password-Authentication", client_id: "clientId", }, diff --git a/packages/kysely/src/migrate/ReferenceMigrationProvider.ts b/packages/kysely/migrate/ReferenceMigrationProvider.ts similarity index 100% rename from packages/kysely/src/migrate/ReferenceMigrationProvider.ts rename to packages/kysely/migrate/ReferenceMigrationProvider.ts diff --git a/packages/kysely/src/migrate/migrate.ts b/packages/kysely/migrate/migrate.ts similarity index 96% rename from packages/kysely/src/migrate/migrate.ts rename to packages/kysely/migrate/migrate.ts index 42f49a1..a5eec5a 100644 --- a/packages/kysely/src/migrate/migrate.ts +++ b/packages/kysely/migrate/migrate.ts @@ -2,7 +2,7 @@ import { Kysely, Migrator } from "kysely"; import ReferenceMigrationProvider from "./ReferenceMigrationProvider"; import migrations from "./migrations"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../src/db"; export async function migrateToLatest(db: Kysely, debug = false) { if (debug) { diff --git a/packages/kysely/src/migrate/migrations/2022-12-11T09:17:35_init.ts b/packages/kysely/migrate/migrations/2022-12-11T09:17:35_init.ts similarity index 99% rename from packages/kysely/src/migrate/migrations/2022-12-11T09:17:35_init.ts rename to packages/kysely/migrate/migrations/2022-12-11T09:17:35_init.ts index 38d11b0..d9c16c6 100644 --- a/packages/kysely/src/migrate/migrations/2022-12-11T09:17:35_init.ts +++ b/packages/kysely/migrate/migrations/2022-12-11T09:17:35_init.ts @@ -1,4 +1,4 @@ -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; import { Kysely } from "kysely"; export async function up(db: Kysely): Promise { diff --git a/packages/kysely/src/migrate/migrations/2023-09-21T10:12:15_support-url.ts b/packages/kysely/migrate/migrations/2023-09-21T10:12:15_support-url.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2023-09-21T10:12:15_support-url.ts rename to packages/kysely/migrate/migrations/2023-09-21T10:12:15_support-url.ts index 2038a46..766e778 100644 --- a/packages/kysely/src/migrate/migrations/2023-09-21T10:12:15_support-url.ts +++ b/packages/kysely/migrate/migrations/2023-09-21T10:12:15_support-url.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-10-26T06:57:21_updated_at.ts b/packages/kysely/migrate/migrations/2023-10-26T06:57:21_updated_at.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2023-10-26T06:57:21_updated_at.ts rename to packages/kysely/migrate/migrations/2023-10-26T06:57:21_updated_at.ts index 3eb94a5..581437c 100644 --- a/packages/kysely/src/migrate/migrations/2023-10-26T06:57:21_updated_at.ts +++ b/packages/kysely/migrate/migrations/2023-10-26T06:57:21_updated_at.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-10-26T08:14:09_log_table.ts b/packages/kysely/migrate/migrations/2023-10-26T08:14:09_log_table.ts similarity index 96% rename from packages/kysely/src/migrate/migrations/2023-10-26T08:14:09_log_table.ts rename to packages/kysely/migrate/migrations/2023-10-26T08:14:09_log_table.ts index db4cd6a..cb0fc62 100644 --- a/packages/kysely/src/migrate/migrations/2023-10-26T08:14:09_log_table.ts +++ b/packages/kysely/migrate/migrations/2023-10-26T08:14:09_log_table.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-10-27T16:00:11_picture-length.ts b/packages/kysely/migrate/migrations/2023-10-27T16:00:11_picture-length.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2023-10-27T16:00:11_picture-length.ts rename to packages/kysely/migrate/migrations/2023-10-27T16:00:11_picture-length.ts index 39a1ebb..4c8ed46 100644 --- a/packages/kysely/src/migrate/migrations/2023-10-27T16:00:11_picture-length.ts +++ b/packages/kysely/migrate/migrations/2023-10-27T16:00:11_picture-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-02T23:18:12_sessions.ts b/packages/kysely/migrate/migrations/2023-11-02T23:18:12_sessions.ts similarity index 98% rename from packages/kysely/src/migrate/migrations/2023-11-02T23:18:12_sessions.ts rename to packages/kysely/migrate/migrations/2023-11-02T23:18:12_sessions.ts index 02bfd2a..70b1a3e 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-02T23:18:12_sessions.ts +++ b/packages/kysely/migrate/migrations/2023-11-02T23:18:12_sessions.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-07T23:18:12_passwords.ts b/packages/kysely/migrate/migrations/2023-11-07T23:18:12_passwords.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2023-11-07T23:18:12_passwords.ts rename to packages/kysely/migrate/migrations/2023-11-07T23:18:12_passwords.ts index bc473f3..393e6b0 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-07T23:18:12_passwords.ts +++ b/packages/kysely/migrate/migrations/2023-11-07T23:18:12_passwords.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts b/packages/kysely/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts similarity index 93% rename from packages/kysely/src/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts rename to packages/kysely/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts index 4cee9eb..26815fc 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts +++ b/packages/kysely/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts b/packages/kysely/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts similarity index 89% rename from packages/kysely/src/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts rename to packages/kysely/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts index a0fff1f..b754127 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts +++ b/packages/kysely/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts b/packages/kysely/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts rename to packages/kysely/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts index 77123a3..5f1d874 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts +++ b/packages/kysely/migrate/migrations/2023-11-17T10:34:00_codes-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // This table is recreated in a later migration diff --git a/packages/kysely/src/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts b/packages/kysely/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts rename to packages/kysely/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts index b2cd34f..fdf9340 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts +++ b/packages/kysely/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-21T12:30:00_user-fields.ts b/packages/kysely/migrate/migrations/2023-11-21T12:30:00_user-fields.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2023-11-21T12:30:00_user-fields.ts rename to packages/kysely/migrate/migrations/2023-11-21T12:30:00_user-fields.ts index 1057fe8..dd367d9 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-21T12:30:00_user-fields.ts +++ b/packages/kysely/migrate/migrations/2023-11-21T12:30:00_user-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema.alterTable("users").dropColumn("linked_to").execute(); diff --git a/packages/kysely/src/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts b/packages/kysely/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts rename to packages/kysely/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts index 68782df..8eadd20 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts +++ b/packages/kysely/migrate/migrations/2023-11-21T15:57:00_user-indexes.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts b/packages/kysely/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts similarity index 89% rename from packages/kysely/src/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts rename to packages/kysely/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts index 94f6f91..c93d18a 100644 --- a/packages/kysely/src/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts +++ b/packages/kysely/migrate/migrations/2023-11-23T17:44:00_profile-data-field.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts b/packages/kysely/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts rename to packages/kysely/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts index 2f78d06..7f6c069 100644 --- a/packages/kysely/src/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts +++ b/packages/kysely/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-12-21T15:05:00_user-locale.ts b/packages/kysely/migrate/migrations/2023-12-21T15:05:00_user-locale.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2023-12-21T15:05:00_user-locale.ts rename to packages/kysely/migrate/migrations/2023-12-21T15:05:00_user-locale.ts index 394b04e..706eb6b 100644 --- a/packages/kysely/src/migrate/migrations/2023-12-21T15:05:00_user-locale.ts +++ b/packages/kysely/migrate/migrations/2023-12-21T15:05:00_user-locale.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts b/packages/kysely/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts rename to packages/kysely/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts index 7a0c183..4d15457 100644 --- a/packages/kysely/src/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts +++ b/packages/kysely/migrate/migrations/2023-12-26T10:58:00_signing-keys.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts b/packages/kysely/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts rename to packages/kysely/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts index a54c19c..b1bc8c2 100644 --- a/packages/kysely/src/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts +++ b/packages/kysely/migrate/migrations/2024-01-06T16:23:00_logs-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts b/packages/kysely/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts rename to packages/kysely/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts index e93766d..3e21817 100644 --- a/packages/kysely/src/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts +++ b/packages/kysely/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts b/packages/kysely/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts similarity index 91% rename from packages/kysely/src/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts rename to packages/kysely/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts index c759b81..acea61b 100644 --- a/packages/kysely/src/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts +++ b/packages/kysely/migrate/migrations/2024-01-11T10:58:00_missing-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts b/packages/kysely/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts similarity index 87% rename from packages/kysely/src/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts rename to packages/kysely/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts index de3ba16..884dd66 100644 --- a/packages/kysely/src/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts +++ b/packages/kysely/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts b/packages/kysely/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts similarity index 87% rename from packages/kysely/src/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts rename to packages/kysely/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts index d3a4611..9dbc666 100644 --- a/packages/kysely/src/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts +++ b/packages/kysely/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.alterTable("logs").dropColumn("category").execute(); diff --git a/packages/kysely/src/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts b/packages/kysely/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts rename to packages/kysely/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts index eda1462..ca28256 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts +++ b/packages/kysely/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.alterTable("users").dropColumn("tags").execute(); diff --git a/packages/kysely/src/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts b/packages/kysely/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts similarity index 91% rename from packages/kysely/src/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts rename to packages/kysely/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts index e591b66..7092253 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts +++ b/packages/kysely/migrate/migrations/2024-02-02T16:55:00_logs-indexes.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts b/packages/kysely/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts rename to packages/kysely/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts index 78c255a..6c021da 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts +++ b/packages/kysely/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // This does not work diff --git a/packages/kysely/src/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts b/packages/kysely/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts rename to packages/kysely/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts index d6cba15..57e4f27 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts +++ b/packages/kysely/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts b/packages/kysely/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts rename to packages/kysely/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts index 9892966..f4c556e 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts +++ b/packages/kysely/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts b/packages/kysely/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts similarity index 91% rename from packages/kysely/src/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts rename to packages/kysely/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts index 002c841..78e452e 100644 --- a/packages/kysely/src/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts +++ b/packages/kysely/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // Sqlite does not support altering tables to add unique constraints diff --git a/packages/kysely/src/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts b/packages/kysely/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts similarity index 93% rename from packages/kysely/src/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts rename to packages/kysely/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts index da6f2ad..e503137 100644 --- a/packages/kysely/src/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts +++ b/packages/kysely/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // Uncomment this for planetscale migration diff --git a/packages/kysely/src/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts b/packages/kysely/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts similarity index 93% rename from packages/kysely/src/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts rename to packages/kysely/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts index 22b863a..99c61b5 100644 --- a/packages/kysely/src/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts +++ b/packages/kysely/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // Uncomment this for planetscale migration diff --git a/packages/kysely/src/migrate/migrations/2024-05-09T08:50:00_branding.ts b/packages/kysely/migrate/migrations/2024-05-09T08:50:00_branding.ts similarity index 94% rename from packages/kysely/src/migrate/migrations/2024-05-09T08:50:00_branding.ts rename to packages/kysely/migrate/migrations/2024-05-09T08:50:00_branding.ts index 4af66d8..1e6da15 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-09T08:50:00_branding.ts +++ b/packages/kysely/migrate/migrations/2024-05-09T08:50:00_branding.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts b/packages/kysely/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts similarity index 99% rename from packages/kysely/src/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts rename to packages/kysely/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts index fdf784f..8599d5a 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts +++ b/packages/kysely/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts b/packages/kysely/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts rename to packages/kysely/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts index 814e52f..f11c98b 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts +++ b/packages/kysely/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts b/packages/kysely/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts rename to packages/kysely/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts index e5aa8eb..e50b156 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts +++ b/packages/kysely/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts b/packages/kysely/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts similarity index 94% rename from packages/kysely/src/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts rename to packages/kysely/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts index 9df430d..d376159 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts +++ b/packages/kysely/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // Uncomment this for planetscale migration diff --git a/packages/kysely/src/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts b/packages/kysely/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts rename to packages/kysely/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts index 46f87e8..e363ca5 100644 --- a/packages/kysely/src/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts +++ b/packages/kysely/migrate/migrations/2024-05-27T23:50:00_authentication_codes.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts b/packages/kysely/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts similarity index 89% rename from packages/kysely/src/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts rename to packages/kysely/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts index 3a7e8ae..2fb0bfc 100644 --- a/packages/kysely/src/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts +++ b/packages/kysely/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts b/packages/kysely/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts similarity index 85% rename from packages/kysely/src/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts rename to packages/kysely/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts index 605694a..72f439f 100644 --- a/packages/kysely/src/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts +++ b/packages/kysely/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.alterTable("otps").addColumn("ip", "varchar(64)").execute(); diff --git a/packages/kysely/src/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts b/packages/kysely/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts similarity index 93% rename from packages/kysely/src/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts rename to packages/kysely/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts index 108404b..854bdd6 100644 --- a/packages/kysely/src/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts +++ b/packages/kysely/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // Uncomment this for planetscale migration diff --git a/packages/kysely/src/migrate/migrations/2024-07-15T10:00:00_user_id.ts b/packages/kysely/migrate/migrations/2024-07-15T10:00:00_user_id.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-07-15T10:00:00_user_id.ts rename to packages/kysely/migrate/migrations/2024-07-15T10:00:00_user_id.ts index eec6985..2050a3f 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-15T10:00:00_user_id.ts +++ b/packages/kysely/migrate/migrations/2024-07-15T10:00:00_user_id.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-07-15T12:52:00_hooks.ts b/packages/kysely/migrate/migrations/2024-07-15T12:52:00_hooks.ts similarity index 94% rename from packages/kysely/src/migrate/migrations/2024-07-15T12:52:00_hooks.ts rename to packages/kysely/migrate/migrations/2024-07-15T12:52:00_hooks.ts index 1c0a3d3..b224f9e 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-15T12:52:00_hooks.ts +++ b/packages/kysely/migrate/migrations/2024-07-15T12:52:00_hooks.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts b/packages/kysely/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts similarity index 93% rename from packages/kysely/src/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts rename to packages/kysely/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts index 6f07610..56bfd21 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts +++ b/packages/kysely/migrate/migrations/2024-07-22T12:52:00_user-indexes.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // Run this is the console to update the user indexes diff --git a/packages/kysely/src/migrate/migrations/2024-07-25T12:19:00_session_id.ts b/packages/kysely/migrate/migrations/2024-07-25T12:19:00_session_id.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2024-07-25T12:19:00_session_id.ts rename to packages/kysely/migrate/migrations/2024-07-25T12:19:00_session_id.ts index b9325ed..bc292cc 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-25T12:19:00_session_id.ts +++ b/packages/kysely/migrate/migrations/2024-07-25T12:19:00_session_id.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // So far we don't really care about the existing sessions diff --git a/packages/kysely/src/migrate/migrations/2024-07-26T10:18:00_codes.ts b/packages/kysely/migrate/migrations/2024-07-26T10:18:00_codes.ts similarity index 98% rename from packages/kysely/src/migrate/migrations/2024-07-26T10:18:00_codes.ts rename to packages/kysely/migrate/migrations/2024-07-26T10:18:00_codes.ts index 66a4e9c..4278870 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-26T10:18:00_codes.ts +++ b/packages/kysely/migrate/migrations/2024-07-26T10:18:00_codes.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts b/packages/kysely/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts similarity index 91% rename from packages/kysely/src/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts rename to packages/kysely/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts index 202ecb3..cf82181 100644 --- a/packages/kysely/src/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts +++ b/packages/kysely/migrate/migrations/2024-07-26T14:18:00_hook-properties.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // Sqlite does not like this diff --git a/packages/kysely/src/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts b/packages/kysely/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts rename to packages/kysely/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts index 0728705..31003e9 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts +++ b/packages/kysely/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-08-01T15:52:00_login_state.ts b/packages/kysely/migrate/migrations/2024-08-01T15:52:00_login_state.ts similarity index 91% rename from packages/kysely/src/migrate/migrations/2024-08-01T15:52:00_login_state.ts rename to packages/kysely/migrate/migrations/2024-08-01T15:52:00_login_state.ts index 2e2b2f6..346ed72 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-01T15:52:00_login_state.ts +++ b/packages/kysely/migrate/migrations/2024-08-01T15:52:00_login_state.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.alterTable("logins").dropColumn("authParams_state").execute(); diff --git a/packages/kysely/src/migrate/migrations/2024-08-16T13:45:00_saml.ts b/packages/kysely/migrate/migrations/2024-08-16T13:45:00_saml.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-08-16T13:45:00_saml.ts rename to packages/kysely/migrate/migrations/2024-08-16T13:45:00_saml.ts index 7147896..e8c4e08 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-16T13:45:00_saml.ts +++ b/packages/kysely/migrate/migrations/2024-08-16T13:45:00_saml.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // Moved to inin migration for sqlite diff --git a/packages/kysely/src/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts b/packages/kysely/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts rename to packages/kysely/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts index 02dec13..74dcf72 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts +++ b/packages/kysely/migrate/migrations/2024-08-20T08:50:00_remove_fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts b/packages/kysely/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts rename to packages/kysely/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts index 5fbdccb..f53b6ad 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts +++ b/packages/kysely/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-08-22T11:54:00_connection_id.ts b/packages/kysely/migrate/migrations/2024-08-22T11:54:00_connection_id.ts similarity index 88% rename from packages/kysely/src/migrate/migrations/2024-08-22T11:54:00_connection_id.ts rename to packages/kysely/migrate/migrations/2024-08-22T11:54:00_connection_id.ts index aae8ea6..81fb41f 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-22T11:54:00_connection_id.ts +++ b/packages/kysely/migrate/migrations/2024-08-22T11:54:00_connection_id.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // This table is recreated in a later migration diff --git a/packages/kysely/src/migrate/migrations/2024-08-26T18:38:00_cert.ts b/packages/kysely/migrate/migrations/2024-08-26T18:38:00_cert.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-08-26T18:38:00_cert.ts rename to packages/kysely/migrate/migrations/2024-08-26T18:38:00_cert.ts index 4eeb9fb..ab26a16 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-26T18:38:00_cert.ts +++ b/packages/kysely/migrate/migrations/2024-08-26T18:38:00_cert.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts b/packages/kysely/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts rename to packages/kysely/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts index c784b30..f9e121c 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts +++ b/packages/kysely/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.dropTable("codes").execute(); diff --git a/packages/kysely/src/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts b/packages/kysely/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts similarity index 97% rename from packages/kysely/src/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts rename to packages/kysely/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts index 072ea27..6a62f1b 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts +++ b/packages/kysely/migrate/migrations/2024-08-27T23:48:00_remove_unused.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-08-30T16:41:00_logs_index.ts b/packages/kysely/migrate/migrations/2024-08-30T16:41:00_logs_index.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-08-30T16:41:00_logs_index.ts rename to packages/kysely/migrate/migrations/2024-08-30T16:41:00_logs_index.ts index e7e1c8f..d5cc81b 100644 --- a/packages/kysely/src/migrate/migrations/2024-08-30T16:41:00_logs_index.ts +++ b/packages/kysely/migrate/migrations/2024-08-30T16:41:00_logs_index.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // Backported this to the table creation diff --git a/packages/kysely/src/migrate/migrations/2024-09-03T08:48:00_application_fields.ts b/packages/kysely/migrate/migrations/2024-09-03T08:48:00_application_fields.ts similarity index 96% rename from packages/kysely/src/migrate/migrations/2024-09-03T08:48:00_application_fields.ts rename to packages/kysely/migrate/migrations/2024-09-03T08:48:00_application_fields.ts index de8b549..72abca3 100644 --- a/packages/kysely/src/migrate/migrations/2024-09-03T08:48:00_application_fields.ts +++ b/packages/kysely/migrate/migrations/2024-09-03T08:48:00_application_fields.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts b/packages/kysely/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts similarity index 95% rename from packages/kysely/src/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts rename to packages/kysely/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts index 8a33d90..e353363 100644 --- a/packages/kysely/src/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts +++ b/packages/kysely/migrate/migrations/2024-09-03T15:15:00_prompt_settings.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { // universal_login_experience: z.enum(["new", "classic"]).default("new"), diff --git a/packages/kysely/src/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts b/packages/kysely/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts similarity index 89% rename from packages/kysely/src/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts rename to packages/kysely/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts index 88886e3..67e0413 100644 --- a/packages/kysely/src/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts +++ b/packages/kysely/migrate/migrations/2024-09-04T08:41:00_connection_client_id.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-09-15T19:31:00_connection_options.ts b/packages/kysely/migrate/migrations/2024-09-15T19:31:00_connection_options.ts similarity index 90% rename from packages/kysely/src/migrate/migrations/2024-09-15T19:31:00_connection_options.ts rename to packages/kysely/migrate/migrations/2024-09-15T19:31:00_connection_options.ts index f647b85..4078d3b 100644 --- a/packages/kysely/src/migrate/migrations/2024-09-15T19:31:00_connection_options.ts +++ b/packages/kysely/migrate/migrations/2024-09-15T19:31:00_connection_options.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts b/packages/kysely/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts similarity index 92% rename from packages/kysely/src/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts rename to packages/kysely/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts index 0cf3bf7..97f999b 100644 --- a/packages/kysely/src/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts +++ b/packages/kysely/migrate/migrations/2024-09-16T17:02:00_users_metadata.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts b/packages/kysely/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts similarity index 87% rename from packages/kysely/src/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts rename to packages/kysely/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts index 96ef873..69843b7 100644 --- a/packages/kysely/src/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts +++ b/packages/kysely/migrate/migrations/2024-10-01T9:09:00_ui_locales.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-10-19T07:47:00_prompt.ts b/packages/kysely/migrate/migrations/2024-10-19T07:47:00_prompt.ts similarity index 87% rename from packages/kysely/src/migrate/migrations/2024-10-19T07:47:00_prompt.ts rename to packages/kysely/migrate/migrations/2024-10-19T07:47:00_prompt.ts index 2002593..0c3379a 100644 --- a/packages/kysely/src/migrate/migrations/2024-10-19T07:47:00_prompt.ts +++ b/packages/kysely/migrate/migrations/2024-10-19T07:47:00_prompt.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts b/packages/kysely/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts similarity index 96% rename from packages/kysely/src/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts rename to packages/kysely/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts index 079d639..88e0461 100644 --- a/packages/kysely/src/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts +++ b/packages/kysely/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-11-18T10:37:00_act_as.ts b/packages/kysely/migrate/migrations/2024-11-18T10:37:00_act_as.ts similarity index 87% rename from packages/kysely/src/migrate/migrations/2024-11-18T10:37:00_act_as.ts rename to packages/kysely/migrate/migrations/2024-11-18T10:37:00_act_as.ts index a406e3e..0e67b28 100644 --- a/packages/kysely/src/migrate/migrations/2024-11-18T10:37:00_act_as.ts +++ b/packages/kysely/migrate/migrations/2024-11-18T10:37:00_act_as.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts b/packages/kysely/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts similarity index 86% rename from packages/kysely/src/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts rename to packages/kysely/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts index ae1fec4..914cf1a 100644 --- a/packages/kysely/src/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts +++ b/packages/kysely/migrate/migrations/2024-11-22T17:48:00_code_verifier.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-12-04T23:34:00_email_provider.ts b/packages/kysely/migrate/migrations/2024-12-04T23:34:00_email_provider.ts similarity index 94% rename from packages/kysely/src/migrate/migrations/2024-12-04T23:34:00_email_provider.ts rename to packages/kysely/migrate/migrations/2024-12-04T23:34:00_email_provider.ts index 460960f..0dc3504 100644 --- a/packages/kysely/src/migrate/migrations/2024-12-04T23:34:00_email_provider.ts +++ b/packages/kysely/migrate/migrations/2024-12-04T23:34:00_email_provider.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema diff --git a/packages/kysely/src/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts b/packages/kysely/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts similarity index 94% rename from packages/kysely/src/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts rename to packages/kysely/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts index 968c1f7..4b21689 100644 --- a/packages/kysely/src/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts +++ b/packages/kysely/migrate/migrations/2024-12-05T13:05:00_drop_tickets.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(db: Kysely): Promise { await db.schema.dropTable("tickets").execute(); @@ -9,11 +9,11 @@ export async function down(db: Kysely): Promise { await db.schema .createTable("tickets") .addColumn("tenant_id", "varchar(255)", (col) => - col.references("tenants.id").onDelete("cascade").notNull() + col.references("tenants.id").onDelete("cascade").notNull(), ) .addColumn("id", "varchar(255)", (col) => col.primaryKey()) .addColumn("client_id", "varchar(255)", (col) => - col.references("applications.id").onDelete("cascade").notNull() + col.references("applications.id").onDelete("cascade").notNull(), ) .addColumn("email", "varchar(255)", (col) => col.notNull()) .addColumn("nonce", "varchar(255)") diff --git a/packages/kysely/src/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts b/packages/kysely/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts similarity index 89% rename from packages/kysely/src/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts rename to packages/kysely/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts index 616b36e..ae9fcfb 100644 --- a/packages/kysely/src/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts +++ b/packages/kysely/migrate/migrations/2024-12-05T13:20:00_login_useragent.ts @@ -1,5 +1,5 @@ import { Kysely } from "kysely"; -import { Database } from "@authhero/kysely-adapter"; +import { Database } from "../../src/db"; export async function up(_: Kysely): Promise { // await db.schema diff --git a/packages/kysely/src/migrate/migrations/index.ts b/packages/kysely/migrate/migrations/index.ts similarity index 100% rename from packages/kysely/src/migrate/migrations/index.ts rename to packages/kysely/migrate/migrations/index.ts diff --git a/packages/kysely/src/index.ts b/packages/kysely/src/index.ts index dce5552..0f7fdf6 100644 --- a/packages/kysely/src/index.ts +++ b/packages/kysely/src/index.ts @@ -19,7 +19,7 @@ import { createLoginAdapter } from "./logins"; import { createPromptSettingsAdapter } from "./promptSettings"; import { createEmailProvidersAdapter } from "./emailProvideres"; -export { migrateToLatest, migrateDown } from "./migrate/migrate"; +export { migrateToLatest, migrateDown } from "../migrate/migrate"; export default function createAdapters(db: Kysely): DataAdapters { return { diff --git a/packages/kysely/tsconfig.json b/packages/kysely/tsconfig.json index 5a2339b..1da3d1b 100644 --- a/packages/kysely/tsconfig.json +++ b/packages/kysely/tsconfig.json @@ -4,6 +4,6 @@ // "noEmit": true, "baseUrl": "." }, - "include": ["src"], + "include": ["src", "migrate"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b60bf02..36d469c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,8 +61,8 @@ importers: apps/demo: dependencies: '@authhero/kysely-adapter': - specifier: ^0.25.2 - version: 0.25.2(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13)(kysely-bun-sqlite@0.3.2(kysely@0.27.4))(kysely-planetscale@1.5.0(@planetscale/database@1.18.0)(kysely@0.27.4)) + specifier: ^0.25.3 + version: 0.25.3(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13)(kysely-bun-sqlite@0.3.2(kysely@0.27.4))(kysely-planetscale@1.5.0(@planetscale/database@1.18.0)(kysely@0.27.4)) '@hono/swagger-ui': specifier: ^0.5.0 version: 0.5.0(hono@4.6.13) @@ -73,8 +73,8 @@ importers: specifier: ^1.12.3 version: 1.12.3 authhero: - specifier: ^0.25.2 - version: 0.25.2(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13) + specifier: ^0.26.0 + version: 0.26.0(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13) hono: specifier: ^4.6.13 version: 4.6.13 @@ -180,6 +180,10 @@ importers: version: 1.6.0(@types/node@20.14.9)(jsdom@24.1.0) packages/adapter-interfaces: + dependencies: + nanoid: + specifier: ^5.0.8 + version: 5.0.8 devDependencies: '@hono/zod-openapi': specifier: ^0.18.0 @@ -217,6 +221,9 @@ importers: bcryptjs: specifier: ^2.4.3 version: 2.4.3 + nanoid: + specifier: ^5.0.8 + version: 5.0.8 oslo: specifier: ^1.2.1 version: 1.2.1 @@ -242,6 +249,9 @@ importers: hono: specifier: ^4.6.11 version: 4.6.11 + kysely: + specifier: ^0.27.4 + version: 0.27.4 typescript: specifier: ^5.6.3 version: 5.6.3 @@ -348,34 +358,6 @@ importers: specifier: ^2.1.5 version: 2.1.5(@types/node@22.9.1)(jsdom@24.1.0) - packages/saml: - dependencies: - '@authhero/adapter-interfaces': - specifier: workspace:^ - version: link:../adapter-interfaces - fast-xml-parser: - specifier: ^4.5.0 - version: 4.5.0 - devDependencies: - '@rollup/plugin-commonjs': - specifier: ^26.0.1 - version: 26.0.1(rollup@4.24.0) - '@rollup/plugin-node-resolve': - specifier: ^15.2.3 - version: 15.2.3(rollup@4.24.0) - '@types/node': - specifier: ^20.14.9 - version: 20.14.9 - typescript: - specifier: ^5.5.2 - version: 5.5.2 - vite: - specifier: ^5.3.2 - version: 5.3.2(@types/node@20.14.9) - vitest: - specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.9)(jsdom@24.1.0) - packages: '@ampproject/remapping@2.3.0': @@ -390,13 +372,13 @@ packages: '@auth0/auth0-spa-js@2.1.3': resolution: {integrity: sha512-NMTBNuuG4g3rame1aCnNS5qFYIzsTUV5qTFPRfTyYFS1feS6jsCBR+eTq9YkxCp1yuoM2UIcjunPaoPl77U9xQ==} - '@authhero/adapter-interfaces@0.32.1': - resolution: {integrity: sha512-3ovoDMTyD47kMe2xHRirQ7Y02TeLHymx3u76x7rXodV1up7t1ERWmQnL0FmyOraKy5SrlM5msLPh2CYgBikBAw==} + '@authhero/adapter-interfaces@0.33.0': + resolution: {integrity: sha512-jQpl8G3A1n+oxUWdghZOkP3lGJOgXa5CpdT8TNXa5KjW0KxChgn/nwhHSeqd6P3IdmnYkhecxYZRuPa5u0yecw==} peerDependencies: '@hono/zod-openapi': ^0.16.4 - '@authhero/kysely-adapter@0.25.2': - resolution: {integrity: sha512-T0ahDmy0J5o1c6Ol0kxQbQ4tccuWZtIDbWG+XuLwCmdXJsEDTeNlMUvNQBi+5x5L6D4PVBNHLVX9ktzKugBfQQ==} + '@authhero/kysely-adapter@0.25.3': + resolution: {integrity: sha512-y91Q/QR0dd6HGC5SY4UvqXDiJVjEmO0FeSToOw5nFNbXazN6Jyq/RwVSWRNMp8mH5/eIONdUpB0xnmbPamHD6w==} peerDependencies: '@hono/zod-openapi': ^0.16.4 hono: ^4.6.8 @@ -1964,8 +1946,8 @@ packages: resolution: {integrity: sha512-7prDjvt9HmqiZ0cl5CRjtS84sEyhsHP2coDkaZKRKVfCDo9s7iw7ChVmar78Gu9pC4SoR/28wFu/G5JJhTnqEg==} engines: {node: '>=4'} - authhero@0.25.2: - resolution: {integrity: sha512-2pGmpxXePIkb8WBiGme6f8NFr/jvbIxdpk8gcFuQdw4PGMC7WzRcvNlsB52uqKwQmmDF5g90j8YmkoklGo27Vg==} + authhero@0.26.0: + resolution: {integrity: sha512-zHdHW5KQjlvkZzr0DYL2KE5/wrZwXuU3LxMNvc1fEc13F2Q1Q+fVABWUJ1djUWhBiX21RDqW4VZ2AyAD7rePug==} peerDependencies: '@hono/zod-openapi': ^0.18.0 hono: ^4.6.11 @@ -2507,10 +2489,6 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fast-xml-parser@4.5.0: - resolution: {integrity: sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg==} - hasBin: true - fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -4016,9 +3994,6 @@ packages: strip-literal@2.1.0: resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} - strnum@1.0.5: - resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} - stylis@4.2.0: resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==} @@ -4581,13 +4556,13 @@ snapshots: '@auth0/auth0-spa-js@2.1.3': {} - '@authhero/adapter-interfaces@0.32.1(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))': + '@authhero/adapter-interfaces@0.33.0(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))': dependencies: '@hono/zod-openapi': 0.18.3(hono@4.6.13)(zod@3.23.8) - '@authhero/kysely-adapter@0.25.2(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13)(kysely-bun-sqlite@0.3.2(kysely@0.27.4))(kysely-planetscale@1.5.0(@planetscale/database@1.18.0)(kysely@0.27.4))': + '@authhero/kysely-adapter@0.25.3(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13)(kysely-bun-sqlite@0.3.2(kysely@0.27.4))(kysely-planetscale@1.5.0(@planetscale/database@1.18.0)(kysely@0.27.4))': dependencies: - '@authhero/adapter-interfaces': 0.32.1(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8)) + '@authhero/adapter-interfaces': 0.33.0(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8)) '@hono/zod-openapi': 0.18.3(hono@4.6.13)(zod@3.23.8) hono: 4.6.13 kysely: 0.27.4 @@ -6406,15 +6381,16 @@ snapshots: attr-accept@2.2.2: {} - authhero@0.25.2(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13): + authhero@0.26.0(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8))(hono@4.6.13): dependencies: - '@authhero/adapter-interfaces': 0.32.1(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8)) + '@authhero/adapter-interfaces': 0.33.0(@hono/zod-openapi@0.18.3(hono@4.6.13)(zod@3.23.8)) '@hono/zod-openapi': 0.18.3(hono@4.6.13)(zod@3.23.8) '@peculiar/x509': 1.12.3 bcrypt: 5.1.1 bcryptjs: 2.4.3 hono: 4.6.13 oslo: 1.2.1 + zxcvbn: 4.4.2 transitivePeerDependencies: - encoding - supports-color @@ -7122,10 +7098,6 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-xml-parser@4.5.0: - dependencies: - strnum: 1.0.5 - fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -8644,8 +8616,6 @@ snapshots: dependencies: js-tokens: 9.0.0 - strnum@1.0.5: {} - stylis@4.2.0: {} supports-color@5.5.0: