From 2015c5e9914ca6232a670c2aead21cf2c121d43a Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Mon, 18 Dec 2023 00:33:30 -0500 Subject: [PATCH] Fix session max age docs --- README.md | 4 ++-- src/config/env/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 50867c6..7db4229 100644 --- a/README.md +++ b/README.md @@ -161,8 +161,8 @@ SPARKPOST_SENDER_ADDRESS=" > .env - Use the same command as above to generate a random string. - `SESSION_TOKEN_NAME` is the name of the session cookie. - You can set this to `biergarten`. -- `SESSION_MAX_AGE` is the maximum age of the session cookie in milliseconds. - - You can set this to `604800000` (1 week). +- `SESSION_MAX_AGE` is the maximum age of the session cookie in seconds. + - You can set this to `604800` (1 week). - `POSTGRES_PRISMA_URL`is a pooled connection string for your Neon Postgres database. - `POSTGRES_URL_NON_POOLING` is a non-pooled connection string for your Neon Postgres database used for migrations. diff --git a/src/config/env/index.ts b/src/config/env/index.ts index 2fe19e8..7c7b7b1 100644 --- a/src/config/env/index.ts +++ b/src/config/env/index.ts @@ -121,7 +121,7 @@ export const SESSION_SECRET = parsed.data.SESSION_SECRET; export const SESSION_TOKEN_NAME = parsed.data.SESSION_TOKEN_NAME; /** - * Maximum age of the session cookie in milliseconds. + * Maximum age of the session cookie in seconds. * * @example * '86400000'; // 24 hours