Update default-cookies.ts

pull/2863/head^2
zomars 2022-06-05 13:46:25 -06:00
parent 8998e41104
commit 9866e12a84
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { CookiesOptions } from "next-auth";
import type { CookieOption, CookiesOptions } from "next-auth";
import { isENVDev } from "@calcom/lib/env";
@ -18,7 +18,7 @@ const NEXTAUTH_COOKIE_DOMAIN = process.env.NEXTAUTH_COOKIE_DOMAIN || "";
export function defaultCookies(useSecureCookies: boolean): CookiesOptions {
const cookiePrefix = useSecureCookies ? "__Secure-" : "";
const defaultOptions = {
const defaultOptions: CookieOption["options"] = {
domain: isENVDev ? undefined : NEXTAUTH_COOKIE_DOMAIN,
// To enable cookies on widgets,
// https://stackoverflow.com/questions/45094712/iframe-not-reading-cookies-in-chrome