title: Lumen Authentication
body: <p>Just can't get the Lumen authentication to work at all.</p>
  
  <p>I have a fresh install and trying to follow the docs here:</p>
  
  <p><a href="https://lumen.laravel.com/docs/5.2/authentication" rel="nofollow">https://lumen.laravel.com/docs/5.2/authentication</a></p>
  
  <p>I've Uncommented the <code>AuthProvider</code> line in the <code>app.php</code> file (along with everything else, facade, etc). Then in a simple controller I just do <code>dd(Auth::use())</code>.</p>
  
  <p>I just can't get around this error:</p>
  
  <pre><code>Undefined index: provider
  in AuthManager.php line 152
  at Application-&gt;Laravel\Lumen\Concerns\{closure}('8', 'Undefined index: provider', '/home/vagrant/Code/gryd/api.gryd.com/vendor/illuminate/auth/AuthManager.php', '152', array('name' =&gt; 'api', 'config' =&gt; array('driver' =&gt; 'token'))) in AuthManager.php line 152
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>EDIT:</p>
  
  <p>Since someone asked for a code sample.</p>
  
  <ol>
  <li>Install Lumen</li>
  <li>Uncomment everything in app.php</li>
  <li><p>Put this in routes:</p>
  
  <p>$app->get('/api/v1/users/{id}', function () {
      dd(\Auth::user());
  });</p></li>
  </ol>