diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 9918f43..b5d1e6b 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,7 +1,7 @@ import NextAuth from "next-auth" import { authOptions } from "@/constants/auth-options" -export const handler = NextAuth(authOptions) + const handler = NextAuth(authOptions) // Экспортируем напрямую функции GET и POST, без промежуточной переменной export const GET = handler diff --git a/components/shared/modals/show-number.tsx b/components/shared/modals/show-number.tsx index 6b3e9d8..09c8cbf 100644 --- a/components/shared/modals/show-number.tsx +++ b/components/shared/modals/show-number.tsx @@ -9,15 +9,15 @@ interface Props { export const ShowNumberModal: React.FC = ({ open, onClose}) => { - const [ session, setSession ] = React.useState(null) + // const [ session, setSession ] = React.useState(null) - React.useEffect(() => { - const getSession = async () => { - const userSession = await getUserSession() - setSession(userSession) - } - getSession() - }, []) + // React.useEffect(() => { + // const getSession = async () => { + // const userSession = await getUserSession() + // setSession(userSession) + // } + // getSession() + // }, []) // const session = await getUserSession() const handleClose = () => { onClose()