Auth0 Home Blog Docs

Flask example - excessive certificate fetching?


The example on this page: has a request to the well-known endpoint every time one of the wrapped function is invoked (unless I’m mistaken, which is always possible). This feels like a serious overhead. Is there a circumstance in which the response is going to change? If so, how would one know that a re-fetch is necessary?