for deploy

This commit is contained in:
Zikil 2024-11-23 14:43:02 +07:00
parent ea479c6639
commit d653c15c90
2 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
import NextAuth from "next-auth" import NextAuth from "next-auth"
import { authOptions } from "@/constants/auth-options" import { authOptions } from "@/constants/auth-options"
export const handler = NextAuth(authOptions) const handler = NextAuth(authOptions)
// Экспортируем напрямую функции GET и POST, без промежуточной переменной // Экспортируем напрямую функции GET и POST, без промежуточной переменной
export const GET = handler export const GET = handler

View File

@ -9,15 +9,15 @@ interface Props {
export const ShowNumberModal: React.FC<Props> = ({ open, onClose}) => { export const ShowNumberModal: React.FC<Props> = ({ open, onClose}) => {
const [ session, setSession ] = React.useState<any>(null) // const [ session, setSession ] = React.useState(null)
React.useEffect(() => { // React.useEffect(() => {
const getSession = async () => { // const getSession = async () => {
const userSession = await getUserSession() // const userSession = await getUserSession()
setSession(userSession) // setSession(userSession)
} // }
getSession() // getSession()
}, []) // }, [])
// const session = await getUserSession() // const session = await getUserSession()
const handleClose = () => { const handleClose = () => {
onClose() onClose()