T
Twenty7mo ago
Rob

Getting logged regularly (~15 mins)

Hi Twenty team, Thanks for the wonderful software product. I am using google authentication. I am able to log in via google auth and also authenticate with mail and calendar sync etc. However, I am logged out reguarly. About every 15 mins. My docker compose currently includes:
LOGIN_TOKEN_EXPIRES_IN: 90d
ACCESS_TOKEN_EXPIRES_IN: 30m
LOGIN_TOKEN_EXPIRES_IN: 90d
ACCESS_TOKEN_EXPIRES_IN: 30m
and i logged in to the docker image and ran env and it showed...
/app/packages/twenty-server $ env
CACHE_STORAGE_TYPE=redis
CACHE_STORAGE_TTL=3600
REDIS_PORT=6379
ENABLE_DB_MIGRATIONS=true
NODE_VERSION=18.17.1
SENTRY_RELEASE=
HOSTNAME=dc289588ed46
YARN_VERSION=1.22.19
REACT_APP_SERVER_BASE_URL=
SHLVL=1
PORT=3854
FRONT_BASE_URL=https://{redacted}
CALENDAR_PROVIDER_GMAIL_ENABLED=true
HOME=/home/node
ACCESS_TOKEN_SECRET={redacted}
LOGIN_TOKEN_SECRET={redacted}
PG_DATABASE_URL={redacted}
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID={redacted}
AUTH_GOOGLE_CLIENT_SECRET={redacted}
AUTH_GOOGLE_ENABLED=true
STORAGE_TYPE=s3
STORAGE_S3_NAME={redacted}
TERM=xterm
FILE_TOKEN_SECRET={redacted}
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REFRESH_TOKEN_SECRET={redacted}
SIGN_IN_PREFILLED=false
STORAGE_S3_REGION={redacted}
AWS_ACCESS_KEY_ID={redacted}
AWS_SECRET_ACCESS_KEY={redacted}
AUTH_GOOGLE_CALLBACK_URL=https://{redacted}/auth/google/redirect
SERVER_URL=https://{redacted}
ACCESS_TOKEN_EXPIRES_IN=30m
MESSAGING_PROVIDER_GMAIL_ENABLED=true
LOGIN_TOKEN_EXPIRES_IN=90d
REDIS_HOST=192.168.1.4
PWD=/app/packages/twenty-server
IS_SIGN_UP_DISABLED=false
AUTH_GOOGLE_APIS_CALLBACK_URL=https://{redacted}/auth/google-apis/get-access-token
MESSAGE_QUEUE_TYPE=bull-mq
/app/packages/twenty-server $
/app/packages/twenty-server $ env
CACHE_STORAGE_TYPE=redis
CACHE_STORAGE_TTL=3600
REDIS_PORT=6379
ENABLE_DB_MIGRATIONS=true
NODE_VERSION=18.17.1
SENTRY_RELEASE=
HOSTNAME=dc289588ed46
YARN_VERSION=1.22.19
REACT_APP_SERVER_BASE_URL=
SHLVL=1
PORT=3854
FRONT_BASE_URL=https://{redacted}
CALENDAR_PROVIDER_GMAIL_ENABLED=true
HOME=/home/node
ACCESS_TOKEN_SECRET={redacted}
LOGIN_TOKEN_SECRET={redacted}
PG_DATABASE_URL={redacted}
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID={redacted}
AUTH_GOOGLE_CLIENT_SECRET={redacted}
AUTH_GOOGLE_ENABLED=true
STORAGE_TYPE=s3
STORAGE_S3_NAME={redacted}
TERM=xterm
FILE_TOKEN_SECRET={redacted}
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REFRESH_TOKEN_SECRET={redacted}
SIGN_IN_PREFILLED=false
STORAGE_S3_REGION={redacted}
AWS_ACCESS_KEY_ID={redacted}
AWS_SECRET_ACCESS_KEY={redacted}
AUTH_GOOGLE_CALLBACK_URL=https://{redacted}/auth/google/redirect
SERVER_URL=https://{redacted}
ACCESS_TOKEN_EXPIRES_IN=30m
MESSAGING_PROVIDER_GMAIL_ENABLED=true
LOGIN_TOKEN_EXPIRES_IN=90d
REDIS_HOST=192.168.1.4
PWD=/app/packages/twenty-server
IS_SIGN_UP_DISABLED=false
AUTH_GOOGLE_APIS_CALLBACK_URL=https://{redacted}/auth/google-apis/get-access-token
MESSAGE_QUEUE_TYPE=bull-mq
/app/packages/twenty-server $
Do you have any suggestions why i might be constantly logged out? Could it be an issue with my google console settings? or do you think its an issue with my twenty setup? Thanks in advance!
2 Replies
D_Gamer
D_Gamer7mo ago
REFRESH_TOKEN_EXPIRES_IN Can you check value of this variable ? I can't find it in your screenshot. This variable might be the issue. So, try to rebuild your docker image with new value of REFRESH_TOKEN_EXPIRES_IN variable. Then run it and see if it works.
Rob
RobOP7mo ago
This seems to have worked! Thanks
Want results from more Discord servers?
Add your server