Token access question

So I combined Github and CLI for different purposes, overall works fine, but from time to time Github is disconnected and requires token to be added one more time. Why is this happenign?

When the token has been revoker or expired, the disconnected status appears near that integration page.

and after opening it, you can see the field for inserting the token and its reconnection

try generating a token with huge expiration time, like a year or permanent token, so it will expire in a long time