geo/frontend/types/next-auth.d.ts

26 lines
406 B
TypeScript

import NextAuth from "next-auth";
declare module "next-auth" {
interface Session {
accessToken: string;
user: {
id: string;
name?: string | null;
email?: string | null;
image?: string | null;
};
}
interface User {
id: string;
accessToken: string;
}
}
declare module "next-auth/jwt" {
interface JWT {
accessToken?: string;
id?: string;
}
}