a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

clear cookies properly (i hope)

+2 -13
+2 -13
src/auth.ts
··· 1 - import { cookies } from "next/headers"; 1 + import { cookies, headers } from "next/headers"; 2 2 import { isProductionDomain } from "./utils/isProductionDeployment"; 3 3 4 4 export async function setAuthToken(tokenID: string) { ··· 16 16 let c = await cookies(); 17 17 c.delete({ 18 18 name: "auth_token", 19 - maxAge: 60 * 60 * 24 * 365, 20 - secure: process.env.NODE_ENV === "production", 21 - domain: isProductionDomain() ? "leaflet.pub" : undefined, 22 - httpOnly: true, 23 - sameSite: "lax", 24 - }); 25 - c.delete({ 26 - name: "auth_token", 27 - maxAge: 60 * 60 * 24 * 365, 28 - secure: process.env.NODE_ENV === "production", 29 - httpOnly: true, 30 - sameSite: "lax", 19 + domain: isProductionDomain() ? ".leaflet.pub" : undefined, 31 20 }); 32 21 }