Tokens are not forever
Assuming you used the code
flow to generate a token.
You will have got a user access token and a refresh token.
So you then use the refresh token to get a new access and refresh token. And away you go
Code flow: Getting OAuth Access Tokens | Twitch Developers
Refresh Flow: Refreshing Access Tokens | Twitch Developers