Fix login stuff?

This commit is contained in:
Owen Schwartz 2024-10-06 18:43:20 -04:00
parent 06eb1544f4
commit d144704066
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
11 changed files with 76 additions and 37 deletions

View file

@ -3,7 +3,7 @@ import { LandingProvider } from "@app/providers/LandingProvider";
import { redirect } from "next/navigation";
export default async function Page() {
const { user } = await verifySession();
const user = await verifySession();
if (!user) {
redirect("/auth/login");
@ -12,7 +12,7 @@ export default async function Page() {
return (
<>
<LandingProvider user={user}>
<p>You're logged in!</p>
<p>You are logged in!</p>
</LandingProvider>
</>
);