aadeshkulkarni / figuringout

Blogging + Social Media + AI | Opensource | Javascript | ReactJS | HonoJS | Prisma
https://figuringout.life
MIT License
72 stars 78 forks source link

fixes-issue#198 #213

Closed Shashan17J closed 1 week ago

Shashan17J commented 1 week ago

Pull Request Title

Fix Local Storage Data Leak on Logout.

Description

This PR fixes the issue where LocalStorage data (such as draft and chat history) is not cleared when a user clicks the logout button. This issue is resolved by ensuring that all relevant data is removed from localStorage upon logout.

Resolves #198

Linked Issues

Type of Change

Changes

Used localStorage.clear() to clear all data from localStorage on logout.

Screenshots/Recordings

https://github.com/aadeshkulkarni/figuringout/assets/130395029/77cfe2dd-ca8b-434d-a76e-bcb34898019c

Checklist before requesting a review

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medium-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 5:41am
Shashan17J commented 1 week ago

@aadeshkulkarni Please Review.

aadeshkulkarni commented 1 week ago

Thanks for your contribution!