2023-07-08 05:35:43 -05:00
|
|
|
import NextAuth from "next-auth";
|
2023-11-02 00:52:49 -05:00
|
|
|
import { JWT } from "next-auth/jwt";
|
2023-02-08 15:11:33 -06:00
|
|
|
|
|
|
|
declare module "next-auth" {
|
|
|
|
interface Session {
|
|
|
|
user: {
|
2023-02-13 18:09:13 -06:00
|
|
|
id: number;
|
2023-07-15 21:15:43 -05:00
|
|
|
isSubscriber: boolean;
|
2023-07-08 05:35:43 -05:00
|
|
|
};
|
2023-02-08 15:11:33 -06:00
|
|
|
}
|
2023-11-02 00:52:49 -05:00
|
|
|
|
|
|
|
interface User {
|
|
|
|
id: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "next-auth/jwt" {
|
|
|
|
interface JWT {
|
|
|
|
sub: string;
|
|
|
|
id: number;
|
2023-11-02 13:59:31 -05:00
|
|
|
isSubscriber: boolean;
|
2023-11-02 00:52:49 -05:00
|
|
|
iat: number;
|
|
|
|
exp: number;
|
|
|
|
jti: string;
|
|
|
|
}
|
2023-02-08 15:11:33 -06:00
|
|
|
}
|