File size: 276 Bytes
bd9595b
 
 
 
 
36f8d04
bd9595b
 
 
1
2
3
4
5
6
7
8
9
10
import { redirect } from '@sveltejs/kit';
import type { Actions } from './$types';

export const actions: Actions = {
	default: async (event) => {
		event.cookies.delete('bergereToken', { path: '/' });
		throw redirect(303, event.request.headers.get('referer') ?? '/');
	}
};