WIP changes
This commit is contained in:
Vendored
+32
@@ -1,4 +1,5 @@
|
||||
import NextAuth from "next-auth";
|
||||
import { JWT } from "next-auth/jwt";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
@@ -9,4 +10,35 @@ declare module "next-auth" {
|
||||
isSubscriber: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: number;
|
||||
name: string;
|
||||
username: string;
|
||||
email: string;
|
||||
emailVerified: Date;
|
||||
image: string;
|
||||
password: string;
|
||||
archiveAsScreenshot: boolean;
|
||||
archiveAsPDF: boolean;
|
||||
archiveAsWaybackMachine: boolean;
|
||||
isPrivate: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
name: string;
|
||||
email: string;
|
||||
picture: string;
|
||||
sub: string;
|
||||
isSubscriber: boolean;
|
||||
id: number;
|
||||
username: string;
|
||||
iat: number;
|
||||
exp: number;
|
||||
jti: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user