2024-09-10 20:33:22 +02:00
|
|
|
import { ActionFunction } from "@remix-run/node";
|
|
|
|
import { writeCookie } from "~/lib/request.server";
|
2024-09-30 20:14:03 +02:00
|
|
|
import { tokenCookieName } from "~/lib/utils";
|
2024-09-10 20:33:22 +02:00
|
|
|
|
|
|
|
export const action: ActionFunction = async () => {
|
|
|
|
return new Response(null, {
|
|
|
|
headers: {
|
2024-09-30 20:14:03 +02:00
|
|
|
"Set-Cookie": writeCookie(tokenCookieName, "token", 0),
|
2024-09-10 20:33:22 +02:00
|
|
|
},
|
|
|
|
status: 204,
|
|
|
|
});
|
|
|
|
};
|