title: Authentication using api token in laravel/fortify
body: <p>I am using laravel/fortify and I was trying to authenticate using HTTP client request</p>
  <pre><code>public function boot()
  {
      Fortify::loginView(function () {
          return view('auth.login');
      });
      Fortify::authenticateUsing(function (Request $request) {
          $response = Http::withHeaders([
              'content-type' =&gt; 'application/json',
              'Accept' =&gt;'application/json',
          ])-&gt;post('http://127.0.0.1:8001/v1/login', [
              'email' =&gt; $request-&gt;email,
              'password' =&gt; $request-&gt;password
          ]);
          if($response-&gt;ok()) {
              //Session::put('token',$response['access_token']);
              $data = $response-&gt;json();
              return $data;
          }
  
  });
  </code></pre>
  <p>But I am getting error and error is:</p>
  <pre><code>TypeError
  Argument 1 passed to Illuminate\Auth\SessionGuard::login() must be an instance of 
  Illuminate\Contracts\Auth\Authenticatable, array given, called in 
  home/suraj/Documents/locaxapp/client/locux/source/clients/vendor/laravel/fortify/src/
  Actions/AttemptToAuthenticate.php on line 77
  </code></pre>