Add SESSION_STORE options (#5403)

* Allow configuring the session storage driver

Fixes #3814

* Document SESSION_STORE env var

* Add missing dependency

* Docs tweak
This commit is contained in:
Rijk van Zanten
2021-04-30 18:18:39 -04:00
committed by GitHub
parent 81f4c25c9b
commit a3898fa321
7 changed files with 119 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
import { Router } from 'express';
import session from 'express-session';
import grant from 'grant';
import Joi from 'joi';
import ms from 'ms';
@@ -219,8 +218,6 @@ router.get(
respond
);
router.use('/oauth', session({ secret: env.SECRET as string, saveUninitialized: false, resave: false }));
router.get(
'/oauth/:provider',
asyncHandler(async (req, res, next) => {