multi-user support
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
export type User = {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
password: string;
|
||||
};
|
||||
8
app/lib/types/next-auth.d.ts
vendored
8
app/lib/types/next-auth.d.ts
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user