From 11060b0a33f26ac5117b7138041a8def38b29405 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 14 Feb 2026 19:39:54 -0700 Subject: [PATCH] Add did property to next-auth Session type The spaces route accesses session.user.did for space ownership. Adding the optional property to the type augmentation fixes the TypeScript compilation error. Co-Authored-By: Claude Opus 4.6 --- src/types/next-auth.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/next-auth.d.ts b/src/types/next-auth.d.ts index 41abda7..564bc5b 100644 --- a/src/types/next-auth.d.ts +++ b/src/types/next-auth.d.ts @@ -4,6 +4,7 @@ declare module "next-auth" { interface Session { user: { id: string; + did?: string | null; } & DefaultSession["user"]; } }