T
Twenty2w ago
Rob

Regularly getting logged out of web interface since v0.33 update

Hi Twenty team. Loving the new v0.33 version, its been great to filter by multiselect!! Since upgrading from 0.32 I have been getting logged out of the web interface regularly (every 30-60 mins approximately). I am self hosting. I have reviewed the variables at https://twenty.com/developers/section/self-hosting/self-hosting-var and have the following set in my docker-compose file:
environment:
PORT: {redacted}
PG_DATABASE_URL: postgres://{redacted}
SERVER_URL: {redacted}
FRONT_BASE_URL:{redacted}

ENABLE_DB_MIGRATIONS: "true"

SIGN_IN_PREFILLED: "false"
IS_SIGN_UP_DISABLED: "false"
LOGIN_TOKEN_EXPIRES_IN: 90d
REFRESH_TOKEN_EXPIRES_IN: 14d
ACCESS_TOKEN_EXPIRES_IN: 120m

STORAGE_TYPE: s3
STORAGE_S3_REGION: {redacted}
STORAGE_S3_NAME: {redacted}
AWS_ACCESS_KEY_ID: {redacted}
AWS_SECRET_ACCESS_KEY: {redacted}

ACCESS_TOKEN_SECRET: {redacted}
APP_SECRET: {redacted}

AUTH_GOOGLE_ENABLED: "true"
MESSAGING_PROVIDER_GMAIL_ENABLED: "true"
CALENDAR_PROVIDER_GMAIL_ENABLED: "true"
CALENDAR_PROVIDER_GOOGLE_ENABLED: "true"
AUTH_GOOGLE_APIS_CALLBACK_URL: {redacted}/auth/google-apis/get-access-token
AUTH_GOOGLE_CALLBACK_URL: {redacted}/auth/google/redirect
AUTH_GOOGLE_CLIENT_ID: {redacted}m
AUTH_GOOGLE_CLIENT_SECRET: {redacted}

REDIS_URL: redis://{redacted}
CACHE_STORAGE_TYPE: redis
CACHE_STORAGE_TTL: 3600
MESSAGE_QUEUE_TYPE: bull-mq
environment:
PORT: {redacted}
PG_DATABASE_URL: postgres://{redacted}
SERVER_URL: {redacted}
FRONT_BASE_URL:{redacted}

ENABLE_DB_MIGRATIONS: "true"

SIGN_IN_PREFILLED: "false"
IS_SIGN_UP_DISABLED: "false"
LOGIN_TOKEN_EXPIRES_IN: 90d
REFRESH_TOKEN_EXPIRES_IN: 14d
ACCESS_TOKEN_EXPIRES_IN: 120m

STORAGE_TYPE: s3
STORAGE_S3_REGION: {redacted}
STORAGE_S3_NAME: {redacted}
AWS_ACCESS_KEY_ID: {redacted}
AWS_SECRET_ACCESS_KEY: {redacted}

ACCESS_TOKEN_SECRET: {redacted}
APP_SECRET: {redacted}

AUTH_GOOGLE_ENABLED: "true"
MESSAGING_PROVIDER_GMAIL_ENABLED: "true"
CALENDAR_PROVIDER_GMAIL_ENABLED: "true"
CALENDAR_PROVIDER_GOOGLE_ENABLED: "true"
AUTH_GOOGLE_APIS_CALLBACK_URL: {redacted}/auth/google-apis/get-access-token
AUTH_GOOGLE_CALLBACK_URL: {redacted}/auth/google/redirect
AUTH_GOOGLE_CLIENT_ID: {redacted}m
AUTH_GOOGLE_CLIENT_SECRET: {redacted}

REDIS_URL: redis://{redacted}
CACHE_STORAGE_TYPE: redis
CACHE_STORAGE_TTL: 3600
MESSAGE_QUEUE_TYPE: bull-mq
Do you have any suggestions as to what I might have set wrong and can modify to ensure I am not logged out reguarly?
1 Reply
charles
charles2w ago
we have some issues with the refresh token logic. I would recommend setting a longer ACCESS_TOKEN_EXPIRES_IN for the moment we use ACCESS_TOKEN_EXPIRES_IN=7d in production
Want results from more Discord servers?
Add your server