The lifetime of an access token depends on how you acquired the token.
My doubt is; How can I get a token that lasts as long as possible?
Using the OIDC implicit grant flow method:
Does the Access token have a longer lifetime?
Obs: Of course, I will have to refresh the access token with refresh_token when it expires anyway, however, what I want is for it to last longer on its own.
You cannot get a longer lasting token than what you have found.
When an access token expires you use refresh token (if it’s refreshable) to get a new token.
And OIDC JWT (last I checked) cannot be refreshed so you extract the needed user data and away you go. The JWT is just a limited time block of user information (broadly speaking) and can’t be used with endpoints (beyond my info)
You can check how long an access token will last when you acquire the token or by using the validate token endpoint
I undestand, however, i noticed that tokens i got when i use this site: Twitch Chat Password Generator
last waay more time than access tokens got in my app.
on the website says " Technical: This application uses the implicit grant flow for the Twitch API to retrieve your token.".
Generally speaking implicit (and client creds) which are not refreshable, are 60 days. And regular/refreshable tokens are 4 hours but refreshable (DCF is different and not going into details on DCF refer to the docs/RFC)