title: Create a fresh new access token using refresh token using thephpleague/oauth2-server
body: <p>I'm facing some problems to wrap my mind about oAuth 2.0. Particularly, <a href="http://oauth2.thephpleague.com/" rel="nofollow">thephpleague/oauth2-server</a> implementation.</p>
  
  <p>I managed to set up an endpoint to create access tokens using Password grant type. This is, when someone do a <code>POST /auth</code>, they get the following answer:</p>
  
  <pre><code>{
      "access_token": "hleVw03Fx4hVsaCqEmFqcXeks0hsDTkNSxMN17NR",
      "token_type": "Bearer",
      "expires_in": 3600,
      "refresh_token": "GD8kT7JfGULhUKSTSBsF7AO6NaIXrqPS0dlyQjTm"
  }
  </code></pre>
  
  <p>What I want to do now, is generate a new token when the <code>access_token</code> gets expired. I understand that I should use the <code>refresh_token</code> to ask for a fresh new token. However, I didn't find any documentation to start with.</p>