better-auth 0.2.9-beta.1 → 0.2.9-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -716,7 +716,7 @@ var getDate = (span, unit = "ms") => {
|
|
|
716
716
|
// src/utils/cookies.ts
|
|
717
717
|
import { TimeSpan } from "oslo";
|
|
718
718
|
function getCookies(options) {
|
|
719
|
-
const secure =
|
|
719
|
+
const secure = options.advanced?.useSecureCookies !== void 0 ? options.advanced?.useSecureCookies : process.env.NODE_ENV !== "development";
|
|
720
720
|
const secureCookiePrefix = secure ? "__Secure-" : "";
|
|
721
721
|
const cookiePrefix = "better-auth";
|
|
722
722
|
const sessionMaxAge = new TimeSpan(7, "d").seconds();
|