mirror of
https://github.com/EdiFarcas/Giveaway-app.git
synced 2026-06-28 23:00:55 +03:00
lint rules update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user