Files
auth/frontend/src/routes/views/home/Home.tsx

21 lines
405 B
TypeScript

import { Component, Show } from "solid-js";
import { useAuthState } from "../../../context/AuthContext";
const Home: Component = () => {
const authState: any = useAuthState();
return (
<div>
<p>Home</p>
<Show when={authState?.isAuthenticated}>
<div>
<p>{JSON.parse(authState?.currentUser)}</p>
</div>
</Show>
</div>
);
};
export default Home;