lint rules update

This commit is contained in:
Alexandru Eduard Farcas
2025-05-18 10:15:18 +03:00
parent e533cd2248
commit f8144fb5ac
5 changed files with 337 additions and 978 deletions
+2
View File
@@ -27,6 +27,7 @@ export const authOptions = {
strategy: "database" as SessionStrategy,
},
callbacks: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async signIn({ user, account, profile }: { user: any; account: any; profile?: any }) {
if (!user || !account || !profile) {
console.error("Sign-in failed: Missing user, account, or profile data.");
@@ -62,6 +63,7 @@ export const authOptions = {
return true;
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async session({ session, user }: { session: any; user: any }) {
session.user.id = user.id;
session.user.youtubeHandle = user.youtubeHandle; // Only attach YouTube handle