feat: init auth across the app

This commit is contained in:
swve 2022-09-24 13:15:40 +02:00
parent 9479a4b127
commit 3b85a73ec1
12 changed files with 204 additions and 29 deletions

View file

@ -1,12 +1,15 @@
import React from "react";
import styled from "styled-components";
import Link from "next/link";
import { AuthContext } from "../security/AuthProvider";
export const HeaderProfileBox = () => {
const auth: any = React.useContext(AuthContext);
return (
<ProfileArea>
{" "}
<span>HeaderProfileBox</span>{" "}
<span>HeaderProfileBox {String(auth.isAuthenticated)}</span>{" "}
<UnidentifiedArea>
<ul>
<li>