Fix session max age docs

This commit is contained in:
Aaron William Po
2023-12-18 00:33:30 -05:00
parent 616e888b9e
commit 2015c5e991
2 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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