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

25 lines
349 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;
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?: number;
2023-11-02 00:52:49 -05:00
id: number;
iat: number;
exp: number;
jti: string;
}
2023-02-08 15:11:33 -06:00
}