Makking/app/cookies.js

9 lines
188 B
JavaScript

import { createCookie } from "@remix-run/node";
export const OAuthToken = createCookie("token", {
domain: "http://localhost:3000",
path: "/",
maxAge: 604_800,
httpOnly: true,
});