mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 23:40:45 +09:00
fix(web): log out (#5706)
* fix: logging out * fix: websocket --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
import UserAvatar from '../user-avatar.svelte';
|
||||
import { featureFlags } from '$lib/stores/server-config.store';
|
||||
import { mdiMagnify, mdiTrayArrowUp, mdiCog } from '@mdi/js';
|
||||
import { user } from '$lib/stores/user.store';
|
||||
import { resetSavedUser, user } from '$lib/stores/user.store';
|
||||
|
||||
export let showUploadButton = true;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
}>();
|
||||
|
||||
const logOut = async () => {
|
||||
resetSavedUser();
|
||||
const { data } = await api.authenticationApi.logout();
|
||||
goto(data.redirectUri || '/auth/login?autoLaunch=0');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user