el.xwx.moe/types/next-auth.d.ts

27 lines
404 B
TypeScript
Raw Normal View History

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: {
id: number;
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
}