refactor: migrate authentication to NextAuth and clean up related services
This commit is contained in:
28
types/next-auth.d.ts
vendored
Normal file
28
types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { DefaultSession } from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
teamId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
|
||||
interface User {
|
||||
teamId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
id: string;
|
||||
teamId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user