API token duration

Hello there, we are interacting with the API token, but it always expires after 24H. Is there any way to make the token permanent that is not expiring?


Reuse the /token endpoint (PeerTube) with refresh_token grant type. With this method you can use your refresh token to re-new the access and refresh token. By default the access token expires after 1 day and the refresh token expires after 2 weeks.

Ok thanks. We finally find a similar solution. We are issuing a new token just before the old token expires, that way the old token works while the new token is just awaiting for the old to be expired.