mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
20 lines
448 B
TypeScript
20 lines
448 B
TypeScript
// next-auth.d.ts
|
|
import NextAuth from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
name: string;
|
|
authMethod: string; // Add authMethod to the session user type
|
|
};
|
|
}
|
|
|
|
interface User {
|
|
id: string;
|
|
email: string;
|
|
name: string;
|
|
authMethod: string; // Add authMethod to the user type
|
|
}
|
|
} |