a tool for shared writing and social publishing
0
fork

Configure Feed

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

fix login to remove all auth_tokens

we have old ones hanging out from when we didn't set the domain!

+2 -7
+2 -7
src/auth.ts
··· 14 14 15 15 export async function removeAuthToken() { 16 16 let c = await cookies(); 17 - c.delete({ 18 - name: "auth_token", 19 - secure: process.env.NODE_ENV === "production", 20 - domain: isProductionDomain() ? "leaflet.pub" : undefined, 21 - httpOnly: true, 22 - sameSite: "lax", 23 - }); 17 + let auth_cookies = c.getAll("auth_token"); 18 + auth_cookies.forEach(({ value, ...cookie }) => c.delete(cookie)); 24 19 }