mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
Fix login stuff?
This commit is contained in:
parent
06eb1544f4
commit
d144704066
11 changed files with 76 additions and 37 deletions
|
@ -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>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue