import { GetCookie, SetCookie } from "@/helpers/cookie"; import ParseJWT from "@/helpers/jwt"; import Link from "next/link"; import React from "react"; function IndexPage() { const [tokenData, setTokenData] = React.useState() React.useEffect(() => { setTokenData(ParseJWT(GetCookie("token") || "{}")) }, []); return (

K3YST0N3

{tokenData ?
{JSON.stringify(tokenData, null, 2)}
: <> Login Register }
); } export default IndexPage;