title: Refresh token with Twitter API
body: <p>I'm wondering if Twitter has an API endpoint that exchanges an expired access token with an active one. The way that I have the login flow working right now goes something like this.</p>
  
  <pre><code>// Request a token and redirect to the authorization page
  $token = $this-&gt;twitter-&gt;getRequestToken();
  
  // Set the session data
  $this-&gt;session-&gt;set_userdata('oauth_token', $token['oauth_token']);
  $this-&gt;session-&gt;set_userdata('oauth_token_secret', $token['oauth_token_secret']);
  
  // Redirect the user to the authorization page
  header('Location: https://api.twitter.com/oauth/authorize?oauth_token='.$token['oauth_token']);
  </code></pre>
  
  <p>The page that the user is redirected to will prompt the user to authorize my app each and every time they want a valid access token. Upon accepting the authorization, the user will be redirected to the callback URL. At my callback URL, the following happens</p>
  
  <pre><code>// Get the parameters from the URL
  $token = $this-&gt;input-&gt;get('oauth_token');
  $verifier = $this-&gt;input-&gt;get('oauth_verifier');
  
  $oauthToken = $this-&gt;session-&gt;oauth_token;
  $oauthSecret = $this-&gt;session-&gt;oauth_token_secret;
  
  // Get the access token
  $access = $this-&gt;twitter-&gt;getAccessToken($verifier, $oauthToken, $oauthSecret);
  </code></pre>
  
  <p>Does such a way exist for an access token to be generated without having to authorize my app each and every time? </p>