mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Added account info panel with sign out button (#219)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
if (browser) {
|
||||
const { shouldShowAnnouncement, localVersion, remoteVersion } = await checkAppVersion();
|
||||
|
||||
console.log('Recheck');
|
||||
return { props: { url, shouldShowAnnouncement, localVersion, remoteVersion } };
|
||||
} else {
|
||||
return {
|
||||
|
||||
12
web/src/routes/auth/logout.ts
Normal file
12
web/src/routes/auth/logout.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { RequestHandler } from '@sveltejs/kit';
|
||||
|
||||
export const post: RequestHandler = async ({ request }) => {
|
||||
return {
|
||||
headers: {
|
||||
'Set-Cookie': 'session=deleted; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT',
|
||||
},
|
||||
body: {
|
||||
ok: true,
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user