implemented initial eslintFixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AuthOptions, getServerSession as getNextAuthServerSession } from "next-auth";
|
||||
import { PrismaAdapter } from "@next-auth/prisma-adapter";
|
||||
import Credentials from "next-auth/providers/credentials";
|
||||
import { DiscordAccount, prisma, User } from "@repo/db";
|
||||
import { prisma } from "@repo/db";
|
||||
import bcrypt from "bcryptjs";
|
||||
import oldUser from "./var.User.json";
|
||||
import { createNewUserFromOld, OldUser } from "../../../../types/oldUser";
|
||||
@@ -70,7 +70,7 @@ export const options: AuthOptions = {
|
||||
},
|
||||
},
|
||||
},
|
||||
adapter: PrismaAdapter(prisma as any),
|
||||
adapter: PrismaAdapter(prisma),
|
||||
callbacks: {
|
||||
jwt: async ({ token, user }) => {
|
||||
if (user && "firstname" in user) {
|
||||
@@ -88,6 +88,7 @@ export const options: AuthOptions = {
|
||||
},
|
||||
});
|
||||
if (!dbUser) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return null as any;
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user