Create login page

This commit is contained in:
2024-05-20 04:14:46 +04:00
parent 851fd9c051
commit da7f86259a
2 changed files with 57 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import {getServerSession} from 'next-auth'
import {redirect} from 'next/navigation'
import LoginForm from './form.js'
export default async function LoginPage() {
const session = await getServerSession()
if (session) {
redirect('/')
}
return <LoginForm />
}