@rip-lang/api 1.0.1 → 1.0.3
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/middleware.rip +1 -1
- package/package.json +1 -1
package/middleware.rip
CHANGED
|
@@ -266,7 +266,7 @@ export sessions = (opts = {}) ->
|
|
|
266
266
|
cookieName = opts.name or 'session'
|
|
267
267
|
maxAge = opts.maxAge or 86400
|
|
268
268
|
secure = opts.secure or false
|
|
269
|
-
httpOnly = opts.httpOnly
|
|
269
|
+
httpOnly = opts.httpOnly ?? true
|
|
270
270
|
sameSite = opts.sameSite or 'Lax'
|
|
271
271
|
|
|
272
272
|
# Warn if no secret in production
|