Added account info panel with sign out button (#219)

This commit is contained in:
Alex
2022-06-11 23:17:20 -05:00
committed by GitHub
parent 2bf764f560
commit dce2bc7508
3 changed files with 73 additions and 2 deletions

View File

@@ -7,7 +7,6 @@
if (browser) {
const { shouldShowAnnouncement, localVersion, remoteVersion } = await checkAppVersion();
console.log('Recheck');
return { props: { url, shouldShowAnnouncement, localVersion, remoteVersion } };
} else {
return {

View 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,
},
};
};