title: How to use refresh token with fastapi?
body: <p>I'm trying to find an example of using the <a href="https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/" rel="noreferrer">refresh token</a> in fastapi.
  The fastapi <a href="https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/" rel="noreferrer">docs</a> provides an example of how to create a bearer token with a limited lifetime but not how to refresh the token.</p>
  
  <p>For flask there is <a href="https://flask-jwt-extended.readthedocs.io/en/stable/refresh_tokens/?highlight=refresh" rel="noreferrer">flask-jwt-extended</a> but didn't find something similar for fastapi.</p>
  
  <p>Any suggestions will be appreciated thx!</p>