mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 18:25:21 -04:00
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:
parent
0ef0d1e111
commit
43242cccc9
3 changed files with 24 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue