cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.31k stars 494 forks source link

Customise login expiry #177

Open alan-roe opened 1 year ago

alan-roe commented 1 year ago

I wanted my login to last longer. With this change the config.yml can be modified to set the amount of days, hours, minutes you might want the cookie to be valid for. If the config file isn't set then it uses the default of however long the session lasts.

sessionTimeout:
  days: 365
  hours: 0
  minutes: 0

I noticed an issue exists for it here #138