initial commit. gotta go
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { getServerAuthSession } from "~/server/auth";
|
||||
import LoginPage from "../login/login-page";
|
||||
import { getProviders } from "next-auth/react";
|
||||
import { redirect } from 'next/navigation';
|
||||
import { getServerAuthSession } from '~/server/auth';
|
||||
import LoginPage from '../login/login-page';
|
||||
import { getProviders } from 'next-auth/react';
|
||||
|
||||
export default async function Login() {
|
||||
const session = await getServerAuthSession();
|
||||
|
||||
if (session) {
|
||||
redirect("/dashboard");
|
||||
redirect('/dashboard');
|
||||
}
|
||||
|
||||
const providers = await getProviders();
|
||||
|
Reference in New Issue
Block a user