Fix login redirect behavior
This commit is contained in:
@ -1,10 +1,7 @@
|
||||
import { redirect } from 'next/navigation'
|
||||
import { isAuthenticated } from '@/lib/auth'
|
||||
|
||||
export default async function LoginPage({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
|
||||
if (await isAuthenticated()) {
|
||||
redirect('/settings')
|
||||
}
|
||||
await isAuthenticated()
|
||||
|
||||
const params = await searchParams
|
||||
|
||||
|
||||
Reference in New Issue
Block a user