From f10cd6c3d668e1f354639664f1a915da1e471aac Mon Sep 17 00:00:00 2001 From: ElrohirGT <45268815+ElrohirGT@users.noreply.github.com> Date: Tue, 15 Oct 2024 20:34:23 -0600 Subject: [PATCH] fix: #5 (#271) * fix: format error on login and console logs (#266) * fix: Removed double component on login (#267) * fix format on login (#269) * fix: format error on login and console logs * fix: display email message error on side bar fix * fix: display email message error on side bar fix * fix: console logs to search bug * Staging (#270) * fix: format error on login and console logs (#266) * fix: Removed double component on login (#267) --------- Co-authored-by: DanielDubon <100601875+DanielDubon@users.noreply.github.com> --------- Co-authored-by: DanielDubon <100601875+DanielDubon@users.noreply.github.com> --- sanitas_frontend/src/components/RequireAuth/index.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sanitas_frontend/src/components/RequireAuth/index.jsx b/sanitas_frontend/src/components/RequireAuth/index.jsx index 9d6227b9..a83225e3 100644 --- a/sanitas_frontend/src/components/RequireAuth/index.jsx +++ b/sanitas_frontend/src/components/RequireAuth/index.jsx @@ -38,6 +38,10 @@ export default function RequireAuth({ children, getSession, path, useStore }) { }, 4000); } else { setIsRedirecting(false); + console.log("Session: ", session); + console.log("Session Token: ", session.getAccessToken()); + console.log("payload: ", session.getAccessToken().payload); + setDisplayName( session.getAccessToken().payload.email ?? "no-username-found", );