INNER CODE UNIT · TypeScript
setCookie
sibelius/relay-workshop · apps/server/src/app.ts:33
export const setCookie = (context: Context) => (cookieName: string, token: string) => {
// const domain = null;
//
// const secure = process.env.NODE_ENV !== 'development';
// const sameSite = 'None'; // Lax | None
//
// const options = {
// httpOnly: true,
// overwrite: true,
// maxAge,
// secure,
// domain,
// signed: false,
// sameSite,
// };
const options = {
httpOnly: true,