Fix error in logout procedure and guard for each route (#439)

This commit is contained in:
Alex 2022-08-07 18:36:34 -05:00 committed by GitHub
parent f881981c44
commit 28c7736ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 58 additions and 20 deletions

View file

@ -1,6 +1,6 @@
import type { ExternalFetch, GetSession, Handle } from '@sveltejs/kit';
import * as cookie from 'cookie';
import { api, serverApi } from '@api';
import { serverApi } from '@api';
export const handle: Handle = async ({ event, resolve }) => {
const cookies = cookie.parse(event.request.headers.get('cookie') || '');