fix: correctly assert protocol

This commit is contained in:
Balázs Orbán
2023-06-22 14:27:44 +02:00
parent 7edb9cf53f
commit a359a562ce

View File

@@ -88,7 +88,7 @@ export function assertConfig(
}
const { callbackUrl: defaultCallbackUrl } = defaultCookies(
options.useSecureCookies ?? url.protocol === "https://"
options.useSecureCookies ?? url.protocol === "https:"
)
const callbackUrlCookie =
request.cookies?.[