diff --git a/frontend/src/common/Header/Login.jsx b/frontend/src/common/Header/Login.jsx index 5af7a49..6764816 100644 --- a/frontend/src/common/Header/Login.jsx +++ b/frontend/src/common/Header/Login.jsx @@ -38,6 +38,10 @@ const Login = ({ handleLogin, displayProfile }) => { const handleButtonShow = () => { if (document.cookie) { + const storedPostTypes = JSON.parse(localStorage.getItem('firebaseui::rememberedAccounts')); + if (storedPostTypes) { + handleLogin(true, storedPostTypes[0].displayName, storedPostTypes[0].photoUrl); + } return null; }