Upgrade to NextAuth v5
This commit is contained in:
+2
-3
@@ -1,9 +1,8 @@
|
||||
import {getServerSession} from 'next-auth'
|
||||
import {createDirectus, rest, readItems} from '@directus/sdk'
|
||||
import Container from '@mui/material/Container'
|
||||
import Box from '@mui/material/Box'
|
||||
import Typography from '@mui/material/Typography'
|
||||
import {options} from './api/auth/[...nextauth]/options.js'
|
||||
import {auth} from '../auth.js'
|
||||
import Konstitisyon from '@/components/konstitisyon/index.js'
|
||||
import Footer from '@/components/footer.js'
|
||||
import Sign from '@/components/session/sign.js'
|
||||
@@ -46,7 +45,7 @@ async function getData() {
|
||||
}
|
||||
|
||||
export default async function Page() {
|
||||
const session = await getServerSession(options)
|
||||
const session = await auth()
|
||||
const {titres, articles} = await getData()
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user