mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
20 lines
467 B
TypeScript
20 lines
467 B
TypeScript
import NextAuth, { DefaultSession } from "next-auth";
|
|
import { Session } from "next-auth";
|
|
import type { User } from "./userTypes";
|
|
declare module "next-auth" {
|
|
/**
|
|
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
|
|
*/
|
|
|
|
interface Session {
|
|
apiToken?: string;
|
|
name?: string | null;
|
|
email?: string | null;
|
|
image?: string | null;
|
|
user?: User & {
|
|
expiry?: string;
|
|
};
|
|
expires: ISODateString;
|
|
}
|
|
}
|