mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Authentication with Credentials is working and setup, same for OAuth with Google.
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
import Home from "./home/page";
|
||||
import {redirect} from "next/navigation";
|
||||
import {currentUser} from "@/auth/current-user";
|
||||
|
||||
|
||||
|
||||
export default async function Index() {
|
||||
|
||||
const user = await currentUser()
|
||||
console.log(user)
|
||||
if (user) {
|
||||
redirect("/dashboard")
|
||||
}
|
||||
redirect("/login")
|
||||
|
||||
//Do not delete
|
||||
// return (
|
||||
// <Home/>
|
||||
// );
|
||||
|
||||
Reference in New Issue
Block a user