import type { RequestHandler } from '@sveltejs/kit';
import { clearSteamCookie } from '$lib/server/steam';

export const POST: RequestHandler = async ({ url, cookies }) => {
  clearSteamCookie(cookies);
  const redirectTo = url.searchParams.get('redirect_uri') ?? '/';
  return new Response(null, { status: 302, headers: { Location: redirectTo } });
};


