first commit

This commit is contained in:
2026-06-14 16:10:40 +03:00
parent 8abc26cf2b
commit e2c51d3b9e
16 changed files with 2272 additions and 26 deletions
+14
View File
@@ -0,0 +1,14 @@
import NextAuth from "next-auth"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [],
callbacks: {
async session({ session, user }) {
if (session.user) {
// Here you would normally fetch the user from the database to attach roles
// session.user.role = user.role
}
return session
}
}
})