24 lines
465 B
TypeScript
24 lines
465 B
TypeScript
import NextAuth, { DefaultSession, DefaultUser } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
role?: string[] | string | null;
|
|
} & DefaultSession["user"];
|
|
accessToken?: string;
|
|
}
|
|
|
|
interface JWT {
|
|
accessToken?: string;
|
|
role?: string[] | string | null;
|
|
}
|
|
|
|
interface User extends DefaultUser {
|
|
role?: string[] | string | null;
|
|
}
|
|
|
|
interface Profile {
|
|
role?: string[] | string | null;
|
|
}
|
|
}
|