feat(theme): SRC theme v1.1.0 — MD3 components (shape scale, buttons, cards, dialogs, state layers)
This commit is contained in:
@@ -27,9 +27,10 @@ function isValidContext(payload: unknown): payload is StalwartAuthContext {
|
||||
&& typeof candidate.authHeader === 'string';
|
||||
}
|
||||
|
||||
const AUTH_CONTEXT_MAX_AGE = 6 * 60 * 60; // 6 hours
|
||||
|
||||
function getSessionCookieOptions() {
|
||||
const { maxAge: _maxAge, ...cookieOptions } = getCookieOptions();
|
||||
return cookieOptions;
|
||||
return { ...getCookieOptions(), maxAge: AUTH_CONTEXT_MAX_AGE };
|
||||
}
|
||||
|
||||
export function readStalwartAuthContextFromStore(
|
||||
|
||||
Reference in New Issue
Block a user