How to renew an id_token within a regular web application

So I am in the process of implementing auth0 into a standard web app written in django, we are using the “Regular web application” work flow.

The issue i am now facing is how to refresh/renew id_tokens. ID tokens have an expiry time attached exp the code checks to see if the exp time has elapsed and refreshes the id_token. I have the refresh token and I have been trying to issue requests to oauth/token endpoint but i have been unable to get a valid response.

How do i renew an id_token using the API and a server side backend (python).

As an FYI the docs around this are really not clear and do not add any helpful comments or examples. The docs simply state you may want to change the timeout on these tokens from the default 10hours, but this is not a solution.

Many thanks.