33 lines
713 B
TypeScript
33 lines
713 B
TypeScript
import { DefaultSession } from "next-auth";
|
|
import { DefaultJWT } from "next-auth/jwt";
|
|
|
|
declare module "next-auth" {
|
|
interface Session extends DefaultSession {
|
|
user: {
|
|
id: string;
|
|
name: string;
|
|
username: string;
|
|
email: string;
|
|
image: string;
|
|
};
|
|
error?: "RefreshAccessTokenError";
|
|
}
|
|
|
|
interface User {
|
|
id: string;
|
|
name: string;
|
|
username: string;
|
|
email: string;
|
|
image: string;
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT extends DefaultJWT {
|
|
id: string;
|
|
name: string;
|
|
username: string;
|
|
email: string;
|
|
image: string;
|
|
}
|
|
} |