1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-29 01:39:36 +02:00

feat: add num_cities field to RegionSerializer, update RegionCard to display city count, and enhance CSRF token handling

This commit is contained in:
Sean Morley 2025-01-09 14:58:45 -05:00
parent abe870506f
commit 22790ae7c0
6 changed files with 30 additions and 7 deletions

View file

@ -3,6 +3,7 @@ import { sequence } from '@sveltejs/kit/hooks';
const PUBLIC_SERVER_URL = process.env['PUBLIC_SERVER_URL'];
export const authHook: Handle = async ({ event, resolve }) => {
event.cookies.delete('csrftoken', { path: '/' });
try {
let sessionid = event.cookies.get('sessionid');