Upgrade to NextAuth v5

This commit is contained in:
2024-06-18 11:10:30 +04:00
parent 5491d996b8
commit 157951b10e
9 changed files with 64 additions and 90 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
import {getServerSession} from 'next-auth'
import {redirect} from 'next/navigation'
import {auth} from '../../auth.js'
import LoginForm from './form.js'
export default async function LoginPage() {
const session = await getServerSession()
const session = await auth()
if (session) {
redirect('/')