add login portal and traefik middleware auth for testing redirect login

This commit is contained in:
Milo Schwartz
2024-10-06 18:08:26 -04:00
parent 0838679120
commit 87c4fc798f
14 changed files with 285 additions and 130 deletions

View File

@@ -0,0 +1,15 @@
"use client";
import { UserContext } from "@app/contexts/userContext";
import { ReactNode } from "react";
type LandingProviderProps = {
user: any;
children: ReactNode;
};
export function LandingProvider({ user, children }: LandingProviderProps) {
return <UserContext.Provider value={user}>{children}</UserContext.Provider>;
}
export default LandingProvider;