fix:login out

This commit is contained in:
DiamondThree
2022-12-20 11:43:22 +08:00
parent 06715b7e79
commit e9ee7efdf5
@@ -51,7 +51,12 @@ export const SelectorPopperContent = () => {
<ListItem
icon={<LogOutIcon />}
name="Sign out"
onClick={() => console.log('Sign out')}
onClick={() => {
console.log('Sign out');
// FIXME: remove token from local storage and reload the page
localStorage.removeItem('affine_token');
window.location.reload();
}}
/>
</SelectorPopperContainer>
);