mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Merge pull request #75 from aaronpo97/update-docs
Fix session max age docs
This commit is contained in:
@@ -161,8 +161,8 @@ SPARKPOST_SENDER_ADDRESS=" > .env
|
|||||||
- Use the same command as above to generate a random string.
|
- Use the same command as above to generate a random string.
|
||||||
- `SESSION_TOKEN_NAME` is the name of the session cookie.
|
- `SESSION_TOKEN_NAME` is the name of the session cookie.
|
||||||
- You can set this to `biergarten`.
|
- You can set this to `biergarten`.
|
||||||
- `SESSION_MAX_AGE` is the maximum age of the session cookie in milliseconds.
|
- `SESSION_MAX_AGE` is the maximum age of the session cookie in seconds.
|
||||||
- You can set this to `604800000` (1 week).
|
- You can set this to `604800` (1 week).
|
||||||
- `POSTGRES_PRISMA_URL`is a pooled connection string for your Neon Postgres database.
|
- `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
|
- `POSTGRES_URL_NON_POOLING` is a non-pooled connection string for your Neon Postgres
|
||||||
database used for migrations.
|
database used for migrations.
|
||||||
|
|||||||
2
src/config/env/index.ts
vendored
2
src/config/env/index.ts
vendored
@@ -121,7 +121,7 @@ export const SESSION_SECRET = parsed.data.SESSION_SECRET;
|
|||||||
export const SESSION_TOKEN_NAME = parsed.data.SESSION_TOKEN_NAME;
|
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
|
* @example
|
||||||
* '86400000'; // 24 hours
|
* '86400000'; // 24 hours
|
||||||
|
|||||||
Reference in New Issue
Block a user