bolt.new/app/routes/logout.tsx

11 lines
291 B
TypeScript
Raw Normal View History

2024-07-29 18:31:45 +00:00
import type { LoaderFunctionArgs } from '@remix-run/cloudflare';
import { logout } from '~/lib/.server/sessions';
export async function loader({ request, context }: LoaderFunctionArgs) {
return logout(request, context.cloudflare.env);
}
export default function Logout() {
return '';
}