COXIT-CO / RecruitFlowAI

AI Driven Recruitment Assistant
MIT License
14 stars 2 forks source link

Implement token refresh logic #23

Closed iramykytyn closed 1 year ago

iramykytyn commented 1 year ago

We need to implement token refresh logic. Currently, bot can not be restarted after app token expires (12 hours). This cause that we need to rebuild container with new .env variable setup and start it again. This process looks like this: https://www.loom.com/share/03b7233929e743e8bdaebc0628823761?sid=b9815f9c-ca34-4634-bff3-6acea44d7e86.

I want it to restart automatically with docker's restart option, and in order to do it refresh token logic should be implemented.

iramykytyn commented 1 year ago

I believe this is what we need to make it auto restartable https://api.slack.com/authentication/rotation