aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/authentication-log-out/+server.ts
blob: 22ef49d872dea74dca3055178d2a248ea63a6eca (plain) (blame)
1
2
3
4
5
6
7
import { redirect } from '@sveltejs/kit';

export const GET = ({ cookies }) => {
	cookies.delete('user', { path: '/' });

	throw redirect(303, '/');
};