fix: logout
This commit is contained in:
parent
664ce0a29b
commit
f1dea1016a
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { redirect, type ServerLoad } from '@sveltejs/kit';
|
import { redirect, type ServerLoad } from '@sveltejs/kit';
|
||||||
|
|
||||||
export const GET: ServerLoad = async ({ cookies, locals }) => {
|
export const load: ServerLoad = async ({ cookies, locals }) => {
|
||||||
const session = cookies.get('session');
|
const session = cookies.get('session');
|
||||||
|
|
||||||
if (session) {
|
if (session) {
|
1
src/routes/logout/+page.svelte
Normal file
1
src/routes/logout/+page.svelte
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<script lang="ts"></script>
|
Loading…
Add table
Reference in a new issue