feat: integrate authentication and password management features, including bcrypt for hashing and NextAuth for session handling

This commit is contained in:
Julien Froidefond
2025-11-30 08:04:06 +01:00
parent 7cb1d5f433
commit d663fbcbd0
30 changed files with 3287 additions and 4164 deletions

23
types/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
import "next-auth";
declare module "next-auth" {
interface User {
id: string;
}
interface Session {
user: {
id: string;
email?: string | null;
name?: string | null;
image?: string | null;
};
}
}
declare module "next-auth/jwt" {
interface JWT {
id: string;
}
}