Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controlplane/src/core/crypto/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { JWTDecodeParams, JWTEncodeParams } from '../../types/index.js';
import { base64URLEncode } from '../util.js';

export const nowInSeconds = () => Math.trunc(Date.now() / 1000);
export const DEFAULT_SESSION_MAX_AGE_SEC = 24 * 60 * 60; // 1 day
export const DEFAULT_SESSION_MAX_AGE_SEC = 14 * 24 * 60 * 60; // 14 days
Comment thread
wilsonrivera marked this conversation as resolved.

// The cookie name used to store the user session.
export const userSessionCookieName = 'cosmo_user_session';
Expand Down
4 changes: 2 additions & 2 deletions docker/keycloak/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"refreshTokenMaxReuse": 0,
"accessTokenLifespan": 28800,
"accessTokenLifespanForImplicitFlow": 900,
"ssoSessionIdleTimeout": 86400,
"ssoSessionMaxLifespan": 86400,
"ssoSessionIdleTimeout": 259200,
"ssoSessionMaxLifespan": 1209600,
Comment thread
wilsonrivera marked this conversation as resolved.
"ssoSessionIdleTimeoutRememberMe": 0,
"ssoSessionMaxLifespanRememberMe": 0,
"offlineSessionIdleTimeout": 2592000,
Expand Down
4 changes: 2 additions & 2 deletions helm/cosmo/templates/keycloak-realm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ data:
"refreshTokenMaxReuse": 0,
"accessTokenLifespan": 28800,
"accessTokenLifespanForImplicitFlow": 900,
"ssoSessionIdleTimeout": 86400,
"ssoSessionMaxLifespan": 86400,
"ssoSessionIdleTimeout": 259200,
"ssoSessionMaxLifespan": 1209600,
"ssoSessionIdleTimeoutRememberMe": 0,
"ssoSessionMaxLifespanRememberMe": 0,
"offlineSessionIdleTimeout": 2592000,
Expand Down
Loading