Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Secure set to true in prod

Richie McIlroyb965e9de3395
diff --git a/packages/database/auth/auth-options.ts b/packages/database/auth/auth-options.ts
index ef027f265..6d4f8b48d 100644
--- a/packages/database/auth/auth-options.ts
+++ b/packages/database/auth/auth-options.ts
@@ -39,7 +39,7 @@ export const authOptions: NextAuthOptions = {
httpOnly: true,
sameSite: "none",
path: "/",
- secure: false,
+ secure: process.env.NODE_ENV === "development" ? false : true,
},
},
},