diff --git a/package.json b/package.json index 530ca325..d8960242 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "daisyui": "^4.6.2", "devmoji": "2.3.0", "dotenv": "^16.4.5", - "drizzle-kit": "0.20.14", + "drizzle-kit": "0.20.17", "eslint": "8.54.0", "eslint-config-prettier": "9.0.0", "eslint-plugin-import": "2.29.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e888a24..c01e964e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,8 +104,8 @@ devDependencies: specifier: ^16.4.5 version: 16.4.5 drizzle-kit: - specifier: 0.20.14 - version: 0.20.14 + specifier: 0.20.17 + version: 0.20.17 eslint: specifier: 8.54.0 version: 8.54.0 @@ -1968,12 +1968,6 @@ packages: dev: true optional: true - /@drizzle-team/studio@0.0.39: - resolution: {integrity: sha512-c5Hkm7MmQC2n5qAsKShjQrHoqlfGslB8+qWzsGGZ+2dHMRTNG60UuzalF0h0rvBax5uzPXuGkYLGaQ+TUX3yMw==} - dependencies: - superjson: 2.2.1 - dev: true - /@emnapi/core@0.45.0: resolution: {integrity: sha512-DPWjcUDQkCeEM4VnljEOEcXdAD7pp8zSZsgOujk/LGIwCXWbXJngin+MO4zbH429lzeC3WbYLGjE2MaUOwzpyw==} requiresBuild: true @@ -2767,6 +2761,21 @@ packages: tslib: 2.6.2 dev: true + /@hono/node-server@1.11.0: + resolution: {integrity: sha512-TLIJq9TMtD1NEG1mVoqNUn1Ita0qSaB5XboZErjFBcO/GJYXwWY4dVdTi9G0lbxtu0x+hJXDItcLaFHb7rlFTw==} + engines: {node: '>=18.14.1'} + dev: true + + /@hono/zod-validator@0.2.1(hono@4.2.6)(zod@3.22.4): + resolution: {integrity: sha512-HFoxln7Q6JsE64qz2WBS28SD33UB2alp3aRKmcWnNLDzEL1BLsWfbdX6e1HIiUprHYTIXf5y7ax8eYidKUwyaA==} + peerDependencies: + hono: '>=3.9.0' + zod: ^3.19.1 + dependencies: + hono: 4.2.6 + zod: 3.22.4 + dev: true + /@httptoolkit/websocket-stream@6.0.1: resolution: {integrity: sha512-A0NOZI+Glp3Xgcz6Na7i7o09+/+xm2m0UCU8gdtM2nIv6/cjLmhMZMqehSpTlgbx9omtLmV8LVqOskPEyWnmZQ==} dependencies: @@ -5764,12 +5773,13 @@ packages: wordwrap: 1.0.0 dev: true - /drizzle-kit@0.20.14: - resolution: {integrity: sha512-0fHv3YIEaUcSVPSGyaaBfOi9bmpajjhbJNdPsRMIUvYdLVxBu9eGjH8mRc3Qk7HVmEidFc/lhG1YyJhoXrn5yA==} + /drizzle-kit@0.20.17: + resolution: {integrity: sha512-mLVDS4nXmO09wFVlzGrdshWnAL+U9eQGC5zRs6hTN6Q9arwQGWU2XnZ17I8BM8Quau8CQRx3Ms6VPgRWJFVp7Q==} hasBin: true dependencies: - '@drizzle-team/studio': 0.0.39 '@esbuild-kit/esm-loader': 2.6.5 + '@hono/node-server': 1.11.0 + '@hono/zod-validator': 0.2.1(hono@4.2.6)(zod@3.22.4) camelcase: 7.0.1 chalk: 5.3.0 commander: 9.5.0 @@ -5778,9 +5788,11 @@ packages: esbuild-register: 3.5.0(esbuild@0.19.12) glob: 8.1.0 hanji: 0.0.5 + hono: 4.2.6 json-diff: 0.9.0 minimatch: 7.4.6 semver: 7.6.0 + superjson: 2.2.1 zod: 3.22.4 transitivePeerDependencies: - supports-color @@ -7122,6 +7134,11 @@ packages: parse-passwd: 1.0.0 dev: true + /hono@4.2.6: + resolution: {integrity: sha512-AtbHZJYWsm+uFHLz0C6xltX7hjOV44a55gSEGBfoQOJ00KSxEUOoiIkmd+NXfapNX0j2GCKhqMmYeegBdHRwcQ==} + engines: {node: '>=16.0.0'} + dev: true + /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} dev: true diff --git a/src/lib/db/schema.ts b/src/lib/db/schema.ts index 968b1e30..d9578759 100644 --- a/src/lib/db/schema.ts +++ b/src/lib/db/schema.ts @@ -33,7 +33,7 @@ export const users = zotMeet.table("users", { email: text("email").unique().notNull(), password: text("password"), created_at: timestamp("created_at"), - authMethods: json("auth_methods").$type(), + authMethods: json("auth_methods").$type().notNull(), }); // Guests are Members who do not have an account and are bound to one specific meeting. diff --git a/src/routes/auth/register/+page.server.ts b/src/routes/auth/register/+page.server.ts index a0b79073..9f812b2f 100644 --- a/src/routes/auth/register/+page.server.ts +++ b/src/routes/auth/register/+page.server.ts @@ -59,7 +59,7 @@ async function register({ request, cookies }: { request: Request; cookies: Cooki displayName: form.data.displayName, email: form.data.email, password: hashedPassword, - // authMethods: ["email"], + authMethods: ["email"], }); await createAndSetSession(lucia, userId, cookies);