replaced email with username
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ export interface Member {
|
||||
canCreate: boolean;
|
||||
canUpdate: boolean;
|
||||
canDelete: boolean;
|
||||
user: OptionalExcluding<User, "email" | "name">;
|
||||
user: OptionalExcluding<User, "username" | "name">;
|
||||
}
|
||||
|
||||
export interface CollectionIncludingMembersAndLinkCount
|
||||
|
||||
Vendored
+4
-2
@@ -1,9 +1,11 @@
|
||||
import NextAuth, { DefaultSession } from "next-auth";
|
||||
import NextAuth from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: number;
|
||||
} & DefaultSession["user"];
|
||||
username: string;
|
||||
email: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user