for deploy
This commit is contained in:
parent
ea479c6639
commit
d653c15c90
@ -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
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user