title: Passport Password Grant Tokens Refresh
body: <p>I perform the steps described in this Questions:</p>
  <p><strong><a href="https://stackoverflow.com/questions/39525968/laravels-5-3-passport-and-api-routes/6#6">Laravel&#39;s 5.3 passport and api routes</a></strong></p>
  <p>Everything works fine from the routes of the api, I can register new users, read their data etc etc.</p>
  <p>Then add this command on AuthServiceProvider</p>
  <blockquote>
  <p>Passport::tokensExpireIn(Carbon::now()-&gt;addMinute(2));
  Passport::refreshTokensExpireIn(Carbon::now()-&gt;addDays(1));</p>
  </blockquote>
  <p>i login in postman in url <strong>{{url}}/oauth/token</strong></p>
  <blockquote>
  <p>Body: application/x-www-form-urlencoded<br>
  {<br>
  grant_type : 'password'<br>
  client_id  : {{email with which the user is registered}}<br>
  client_secret : {{generate the client secret from the mobile app}}<br>
  username : {{email with which the user is registered}}<br>
  password : {{password entered by the user}}<br>
  scope : '' <br>
  }<br></p>
  </blockquote>
  <p>the response its successful</p>
  <blockquote>
  <p>{<br>
  &quot;token_type&quot;: &quot;Bearer&quot;<br>
  &quot;expires_in&quot;: 120<br>
  &quot;access_token&quot;: {{the access_token}}<br>
  &quot;refresh_token&quot;: {{the refresh_token}}<br>
  }</p>
  </blockquote>
  <p>I try to refresh token life time to one day send to <strong>{{url}}/oauth/token</strong></p>
  <h1>ref =&gt; <a href="https://laravel.com/docs/5.3/passport#refreshing-tokens" rel="nofollow noreferrer">https://laravel.com/docs/5.3/passport#refreshing-tokens</a></h1>
  <p>in postman i send</p>
  <p>Headers:</p>
  <blockquote>
  <p>Authorization : Bearer {{the access_token}}</p>
  <p>Body: application/x-www-form-urlencoded<br>
  {<br>
  client_secret : {{generate the client secret from the mobile app}}<br>
  grant_type : refresh_token<br>
  refresh_token : {{the refresh_token}}<br>
  client_id : {{email with which the user is registered}}<br>
  scope : ''<br>
  }</p>
  </blockquote>
  <p>The expected response:</p>
  <blockquote>
  <p>{<br>
  &quot;access_token&quot;: {{new access_token}}<br>
  &quot;token_type&quot;: 'Bearer'<br>
  &quot;expires_in&quot;: 86400<br>
  &quot;refresh_token&quot;: {{new access_token}}<br>
  }</p>
  </blockquote>
  <p>But it does not work as expected, the response its</p>
  <blockquote>
  <p>{<br>
  &quot;access_token&quot;: {{new access_token}}<br>
  &quot;token_type&quot;: 'Bearer'<br>
  &quot;expires_in&quot;: 120<br>
  &quot;refresh_token&quot;: {{new access_token}}<br>
  }</p>
  </blockquote>