/*
This is the login/register page.
You have 2 components, the "AuthComponent" that handle the logic,
and the "AuthText" that will show the description on the left of the screen
*/
import { Auth } from "@supabase/ui";
import AuthComponent from "../components/Auth";
import AuthText from "components/AuthText";
import Layout from "components/Layout";
import { NextSeo } from "next-seo";
import { useEffect } from "react";
import { useRouter } from "next/router";
const AuthPage = () => {
const { user, session } = Auth.useUser();
const router = useRouter();
useEffect(() => {
// If a user is already logged in, return to the homepage
if (user) {
router.push("/");
}
}, [user]);
return (
<>
>
);
};
export default AuthPage;