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 <noreply@anthropic.com>
This commit is contained in:
parent
093062ccc2
commit
11060b0a33
|
|
@ -4,6 +4,7 @@ declare module "next-auth" {
|
||||||
interface Session {
|
interface Session {
|
||||||
user: {
|
user: {
|
||||||
id: string;
|
id: string;
|
||||||
|
did?: string | null;
|
||||||
} & DefaultSession["user"];
|
} & DefaultSession["user"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue