feat: add session to AuthConfig

this handles the settings for the cookie session. The secret and the lifeTime of the cookie can be configured.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-09-04 17:46:58 +02:00 committed by David Mehren
parent 0ef0d1e111
commit 43242cccc9
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 24 additions and 0 deletions

View file

@ -23,6 +23,10 @@ import { FrontendConfigService } from './frontend-config.service';
describe('FrontendConfigService', () => {
const domain = 'http://md.example.com';
const emptyAuthConfig: AuthConfig = {
session: {
secret: 'my-secret',
lifeTime: 1209600000,
},
email: {
enableLogin: false,
enableRegister: false,