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

View File

@ -9,15 +9,15 @@ interface Props {
export const ShowNumberModal: React.FC<Props> = ({ open, onClose}) => {
const [ session, setSession ] = React.useState<any>(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()