title: How to retrieve Laravel Passport access token expiration duration or datetime?
body: <p>I'm using Laravel 5.4 and Passport 4. I want to use only <code>First-Party-App</code> only. So as suggested from this <a href="https://stackoverflow.com/a/50849813/5565544">answer</a>, I want to stay away from putting the ClientID and ClientSecret in the App. I have put in <code>boot()</code> method of <code>AuthServiceProvider</code>  :</p>
  
  <pre><code>Passport::routes();
  Passport::tokensExpireIn(Carbon::now()-&gt;addDays(30));
  Passport::refreshTokensExpireIn(Carbon::now()-&gt;addDays(60));
  </code></pre>
  
  <p>I added my own route in <code>api.php</code> to accept login from App :</p>
  
  <pre><code>Route::post('login', 'Auth\LoginController@apiLogin');
  </code></pre>
  
  <p>This is my Action :</p>
  
  <pre><code>public function apiLogin(Request $request)
  {
      $credentials = $request-&gt;only('email', 'password');
  
      if (Auth::attempt($credentials)) {
          // Authentication passed...
          $user = Auth::user();
          $token = $user-&gt;createToken('API Access')-&gt;accessToken;
  
          return response()-&gt;json(["token_type" =&gt;"Bearer","expires_in" =&gt; 2592000,"access_token" =&gt; $token]);
      }
  
      return response()-&gt;json(["error" =&gt; "invalid_credentials", "message" =&gt; "The user credentials were incorrect."], 401);
  }
  </code></pre>
  
  <p>Is there any method to retrieve the number of seconds for <code>expires_in</code> (30 days => 2592000s), or the datetime so I could make the calculation automatically?</p>