From 8a2d0f43b8dd02a4bce940949aadb9db1c9abf14 Mon Sep 17 00:00:00 2001 From: "Sixia \"Leask\" Huang" Date: Thu, 27 Mar 2025 00:00:38 -0400 Subject: [PATCH] Update Readme.md Providing `nul` as `sameSite` will lead to errors. ``` ZodError: [ { "code": "invalid_type", "expected": "string", "received": "null", "path": [ "sameSite" ], "message": "Expected string, received null" } ] ``` --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 34ee099..61c14ac 100644 --- a/Readme.md +++ b/Readme.md @@ -58,7 +58,7 @@ const CONFIG = { rolling: false, /** (boolean) Force a session identifier cookie to be set on every response. The expiration is reset to the original maxAge, resetting the expiration countdown. (default is false) */ renew: false, /** (boolean) renew session when session is nearly expired, so we can always keep user logged in. (default is false)*/ secure: true, /** (boolean) secure cookie*/ - sameSite: null, /** (string) session cookie sameSite options (default null, don't set it) */ + sameSite: null, /** (string) session cookie sameSite options (default null, do not provide this key if you are not restricting sameSite) */ }; app.use(session(CONFIG, app));