multi-user support

This commit is contained in:
2024-01-08 16:32:08 +01:00
parent 9314d78c9c
commit 8a90c58417
9 changed files with 117 additions and 58 deletions

View File

@@ -1,6 +0,0 @@
export type User = {
id: string;
name: string;
email: string;
password: string;
};

View File

@@ -1,9 +1,11 @@
import NextAuth, { DefaultSession } from 'next-auth';
export type AuthenticatedUser = {
id: string;
} & DefaultSession['user'];
declare module 'next-auth' {
interface Session {
user: {
id: string;
} & DefaultSession['user'];
user: AuthenticatedUser
}
}