From 22dd7d046bba5331338e059f9d2d9357b1838a19 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper <80624252+pilcrowOnPaper@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:32:42 +0900 Subject: [PATCH] Fix Unstorage adapter (#1115) --- packages/adapter-session-unstorage/package.json | 8 ++++++-- packages/adapter-session-unstorage/src/lucia.d.ts | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/adapter-session-unstorage/package.json b/packages/adapter-session-unstorage/package.json index 634c9c2a8..3d3ba4370 100644 --- a/packages/adapter-session-unstorage/package.json +++ b/packages/adapter-session-unstorage/package.json @@ -38,8 +38,12 @@ "unstorage": "^1.9.0" }, "devDependencies": { + "@azure/keyvault-secrets": "^4.7.0", "@lucia-auth/adapter-test": "latest", - "tsx": "^3.12.6", - "lucia": "latest" + "lucia": "latest", + "tsx": "^3.12.6" + }, + "dependencies": { + "unstorage": "^1.9.0" } } diff --git a/packages/adapter-session-unstorage/src/lucia.d.ts b/packages/adapter-session-unstorage/src/lucia.d.ts index 97a71b7b4..1762fe7db 100644 --- a/packages/adapter-session-unstorage/src/lucia.d.ts +++ b/packages/adapter-session-unstorage/src/lucia.d.ts @@ -4,3 +4,7 @@ declare namespace Lucia { type DatabaseUserAttributes = {}; type DatabaseSessionAttributes = {}; } + +// fix weird unstorage type errors +type R2Bucket = any; +type KVNamespace = any;