-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix keycloak memory store ready for prod
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
packages/backend/src/infrastructure/security/KeycloakMemoryStore.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import session from "express-session"; | ||
import createMemoryStore from "memorystore"; | ||
|
||
export const keycloakMemoryStore = new session.MemoryStore(); | ||
const MemoryStore = createMemoryStore(session); | ||
|
||
// export const keycloakMemoryStore = new session.MemoryStore(); | ||
export const keycloakMemoryStore: session.MemoryStore = new MemoryStore({ | ||
checkPeriod: 86400000, // prune expired entries every 24h | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.