@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
27 lines (24 loc) • 589 B
TypeScript
import { type DefaultSession } from 'next-auth';
declare module 'next-auth' {
/**
* Returned by `useSession`, `auth`, contains information about the active session.
*/
interface Session {
user: {
firstName?: string;
} & DefaultSession['user'];
}
interface User {
providerAccountId?: string;
}
/**
* More types can be extends here
* ref: https://authjs.dev/getting-started/typescript
*/
}
declare module '@auth/core/jwt' {
/** Returned by the `jwt` callback and `auth`, when using JWT sessions */
interface JWT {
userId: string;
}
}