support for bearer tokens

This commit is contained in:
daniel31x13
2023-11-02 14:59:31 -04:00
parent b458fad567
commit ae1889e757
27 changed files with 148 additions and 436 deletions
+1 -19
View File
@@ -5,38 +5,20 @@ declare module "next-auth" {
interface Session {
user: {
id: number;
username: string;
email: string;
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;
isSubscriber: boolean;
iat: number;
exp: number;
jti: string;