Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear localStorage when user signs out #150

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/AccountMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@
<span class="flex-1 text-left">Report UI Issue</span>
<ArrowRight class="w-5 h-5 inline-block origin-center -rotate-45 ml-1" />
</a>
<a data-sveltekit-reload href={paths.SIGN_OUT} class="menu-button" on:keydown={dismiss}>
<a
data-sveltekit-reload
href={paths.SIGN_OUT}
class="menu-button"
on:keydown={dismiss}
on:click={() => localStorage.clear()}
>
<span class="flex-1 text-left">Sign Out</span>
<ArrowLeft class="w-5 h-5 inline-block origin-center -rotate-45 ml-1" />
</a>
Expand Down